Skip to content

Commit

Permalink
Fix: We must use shipping address and not the invoice address
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 4, 2012
1 parent 9614881 commit 185c03e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -491,9 +491,9 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
$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;
Expand Down

0 comments on commit 185c03e

Please sign in to comment.