Merge pull request #24493 from BB2A-Anthony/FIX---INVOICE_SHOW_SHIPPING_ADDRESS
FIX - Shipping address same third party
This commit is contained in:
commit
a7f5872975
@ -2143,7 +2143,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
$carac_client_name_shipping=pdfBuildThirdpartyName($object->thirdparty, $outputlangs);
|
||||
$carac_client_shipping=pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, '', 0, 'target', $object);;
|
||||
}
|
||||
if (!empty($carac_client_shipping) && (isset($object->contact->socid) && $object->contact->socid != $object->socid)) {
|
||||
if (!empty($carac_client_shipping)) {
|
||||
$posy += $hautcadre;
|
||||
|
||||
// Show shipping frame
|
||||
|
||||
@ -2392,7 +2392,7 @@ class pdf_sponge extends ModelePDFFactures
|
||||
$carac_client_name_shipping=pdfBuildThirdpartyName($object->thirdparty, $outputlangs);
|
||||
$carac_client_shipping=pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, '', 0, 'target', $object);
|
||||
}
|
||||
if (!empty($carac_client_shipping) && (isset($object->contact->socid) && $object->contact->socid != $object->socid)) {
|
||||
if (!empty($carac_client_shipping)) {
|
||||
$posy += $hautcadre;
|
||||
|
||||
// Show shipping frame
|
||||
|
||||
Loading…
Reference in New Issue
Block a user