Si SIRET renseigné, on affiche pas SIREN (c'est inclus dans SIRET)
This commit is contained in:
parent
7f14991d8b
commit
51b1f05ee7
@ -784,14 +784,14 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->trans("CapitalOf",$conf->global->MAIN_INFO_CAPITAL)." ".$langs->trans("Currency".$conf->monnaie);
|
$ligne.=($ligne?" - ":"").$langs->trans("CapitalOf",$conf->global->MAIN_INFO_CAPITAL)." ".$langs->trans("Currency".$conf->monnaie);
|
||||||
}
|
}
|
||||||
if ($conf->global->MAIN_INFO_SIREN)
|
|
||||||
{
|
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".$conf->global->MAIN_INFO_SIREN;
|
|
||||||
}
|
|
||||||
if ($conf->global->MAIN_INFO_SIRET)
|
if ($conf->global->MAIN_INFO_SIRET)
|
||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".$conf->global->MAIN_INFO_SIRET;
|
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".$conf->global->MAIN_INFO_SIRET;
|
||||||
}
|
}
|
||||||
|
elseif ($conf->global->MAIN_INFO_SIREN)
|
||||||
|
{
|
||||||
|
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".$conf->global->MAIN_INFO_SIREN;
|
||||||
|
}
|
||||||
if ($conf->global->MAIN_INFO_APE)
|
if ($conf->global->MAIN_INFO_APE)
|
||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId3",$this->code_pays).": ".MAIN_INFO_APE;
|
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId3",$this->code_pays).": ".MAIN_INFO_APE;
|
||||||
|
|||||||
@ -71,6 +71,7 @@ class ModelePDFPropales extends FPDF
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$this->error=$db->error();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return $liste;
|
return $liste;
|
||||||
|
|||||||
@ -705,14 +705,14 @@ class pdf_propale_azur extends ModelePDFPropales
|
|||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->trans("CapitalOf",$conf->global->MAIN_INFO_CAPITAL)." ".$langs->trans("Currency".$conf->monnaie);
|
$ligne.=($ligne?" - ":"").$langs->trans("CapitalOf",$conf->global->MAIN_INFO_CAPITAL)." ".$langs->trans("Currency".$conf->monnaie);
|
||||||
}
|
}
|
||||||
if ($conf->global->MAIN_INFO_SIREN)
|
|
||||||
{
|
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".$conf->global->MAIN_INFO_SIREN;
|
|
||||||
}
|
|
||||||
if ($conf->global->MAIN_INFO_SIRET)
|
if ($conf->global->MAIN_INFO_SIRET)
|
||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".$conf->global->MAIN_INFO_SIRET;
|
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".$conf->global->MAIN_INFO_SIRET;
|
||||||
}
|
}
|
||||||
|
elseif ($conf->global->MAIN_INFO_SIREN)
|
||||||
|
{
|
||||||
|
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".$conf->global->MAIN_INFO_SIREN;
|
||||||
|
}
|
||||||
if ($conf->global->MAIN_INFO_APE)
|
if ($conf->global->MAIN_INFO_APE)
|
||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId3",$this->code_pays).": ".MAIN_INFO_APE;
|
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId3",$this->code_pays).": ".MAIN_INFO_APE;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user