From 2d5ae0489833dfe5e80df8da4eccdf6964da0df1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 5 Oct 2006 22:31:20 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Ajout=20pays=20si=20pays=20destinataire?= =?UTF-8?q?=20diff=E9rent=20emetteur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/commande/pdf_einstein.modules.php | 4 ++++ htdocs/includes/modules/facture/pdf_crabe.modules.php | 4 ++++ htdocs/includes/modules/propale/pdf_propale_azur.modules.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/htdocs/includes/modules/commande/pdf_einstein.modules.php b/htdocs/includes/modules/commande/pdf_einstein.modules.php index 43f7c7d8268..5e962cd1a5c 100644 --- a/htdocs/includes/modules/commande/pdf_einstein.modules.php +++ b/htdocs/includes/modules/commande/pdf_einstein.modules.php @@ -864,6 +864,10 @@ class pdf_einstein extends ModelePDFCommandes // Caractéristiques client $carac_client=$object->client->adresse; $carac_client.="\n".$object->client->cp . " " . $object->client->ville."\n"; + if ($this->emetteur->pays_code != $object->client->pays_code) + { + $carac_client.=$object->client->pays."\n"; + } if ($object->client->tva_intra) $carac_client.="\n".$outputlangs->trans("VATIntraShort").': '.$object->client->tva_intra; $pdf->SetFont('Arial','',9); $pdf->SetXY(102,$posy+8); diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index 43fe553a05c..a62a90ac97e 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -961,6 +961,10 @@ class pdf_crabe extends ModelePDFFactures // Caractéristiques client $carac_client=$object->client->adresse; $carac_client.="\n".$object->client->cp . " " . $object->client->ville."\n"; + if ($this->emetteur->pays_code != $object->client->pays_code) + { + $carac_client.=$object->client->pays."\n"; + } if ($object->client->tva_intra) $carac_client.="\n".$outputlangs->trans("VATIntraShort").': '.$object->client->tva_intra; $pdf->SetFont('Arial','',9); $pdf->SetXY(102,$posy+8); diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 2e380cc5800..52ec4b34edb 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -868,6 +868,10 @@ class pdf_propale_azur extends ModelePDFPropales // Caractéristiques client $carac_client=$object->client->adresse; $carac_client.="\n".$object->client->cp . " " . $object->client->ville."\n"; + if ($this->emetteur->pays_code != $object->client->pays_code) + { + $carac_client.=$object->client->pays."\n"; + } if ($object->client->tva_intra) $carac_client.="\n".$outputlangs->trans("VATIntraShort").': '.$object->client->tva_intra; $pdf->SetFont('Arial','',9); $pdf->SetXY(102,$posy+8);