Le lundi 22 août 2005 à 19:34 -0400, Christophe a écrit :
> Dans ce cas, ne pourrait-il pas être retiré du pied de pdf si le SIREN
> existe ?

Genre :

--- /var/www/dolibarrcvs/htdocs/includes/modules/facture/pdf_crabe.modules.php 
2005-08-22 19:27:57.000000000 -0400
+++ /var/www/dolibarr/htdocs/includes/modules/facture/pdf_crabe.modules.php    
2005-08-22 19:43:18.000000000 -0400
@@ -788,14 +792,15 @@
         {
             $ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",
$this->code_pays).": ".$conf->global->MAIN_INFO_SIREN;
         }
-        if ($conf->global->MAIN_INFO_SIRET)
-        {
-            $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;
-        }
+        else
+            if ($conf->global->MAIN_INFO_SIRET)
+            {
+                $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)
         {


-- 
Christophe



_______________________________________________
Dolibarr-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à