From 185c03eea5af2290be55b0aa832639c9a5cfb2f2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Sep 2012 23:10:10 +0200 Subject: [PATCH] Fix: We must use shipping address and not the invoice address --- .../modules/expedition/doc/pdf_expedition_rouget.modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php b/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php index 050e6bd5b83..83e07431449 100644 --- a/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php +++ b/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php @@ -491,9 +491,9 @@ Class pdf_expedition_rouget extends ModelePdfExpedition $pdf->MultiCell(80, 4, $carac_emetteur, 0, 'L'); - // If CUSTOMER contact defined, we use it + // If SHIPPING contact defined, we use it $usecontact=false; - $arrayidcontact=$object->getIdContact('external','CUSTOMER'); + $arrayidcontact=$object->getIdContact('external','SHIPPING'); if (count($arrayidcontact) > 0) { $usecontact=true;