From 4e3750cf619463ec7c6846a79af1fa9060a8e7d8 Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Wed, 12 Apr 2023 15:33:00 +0200 Subject: [PATCH] FIX - INVOICE_SHOW_SHIPPING_ADDRESS --- htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 2 +- htdocs/core/modules/facture/doc/pdf_sponge.modules.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index c3a8fcce500..3ce7097c363 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -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 diff --git a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php index 9aa96e147ab..8d3d9bbca6a 100644 --- a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php @@ -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