From 0fa029bb003b92d48f35c68805220e87cbbd15cc Mon Sep 17 00:00:00 2001 From: simontosser Date: Mon, 22 Aug 2005 15:41:55 +0000 Subject: [PATCH] =?UTF-8?q?Am=E9lioration=20du=20modele=20crabe=20aux=20co?= =?UTF-8?q?nformit=E9s=20r=E9glementaires=20(france)=20ajout=20code=20APE?= =?UTF-8?q?=20(NAF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/facture/pdf_crabe.modules.php | 7 +++++++ .../includes/modules/propale/pdf_propale_azur.modules.php | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index bd9affbad80..cc7c8c755d0 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -786,6 +786,13 @@ class pdf_crabe extends ModelePDFFactures { $ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".$conf->global->MAIN_INFO_SIRET; } + + if ($conf->global->MAIN_INFO_APE) + { + $ligne.=($ligne?" - ":"").$langs->transcountry("ProfId3",$this->code_pays).": ".MAIN_INFO_APE; + } + + if ($ligne) { $pdf->SetXY(8,-$footy); diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 68088542562..1d7b04c960b 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -713,6 +713,11 @@ class pdf_propale_azur extends ModelePDFPropales { $ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".$conf->global->MAIN_INFO_SIRET; } + if ($conf->global->MAIN_INFO_APE) + { + $ligne.=($ligne?" - ":"").$langs->transcountry("ProfId3",$this->code_pays).": ".MAIN_INFO_APE; + } + if ($ligne) { $pdf->SetXY(8,-$footy);