Fix: We must use shipping address and not the invoice address

This commit is contained in:
Laurent Destailleur 2012-09-04 23:10:10 +02:00
parent 9614881bed
commit 185c03eea5

View File

@ -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;