Fix: Affichage bas de page

This commit is contained in:
Laurent Destailleur 2005-06-30 23:03:41 +00:00
parent 9b45620013
commit 72b36c97df

View File

@ -712,15 +712,18 @@ class pdf_crabe extends ModelePDFFactures
$footy=13; $footy=13;
$pdf->SetFont('Arial','',8); $pdf->SetFont('Arial','',8);
if (defined(MAIN_INFO_CAPITAL)) { $ligne="";
$pdf->SetY(-$footy); if (defined('MAIN_INFO_CAPITAL') && MAIN_INFO_CAPITAL) {
$ligne="SARL au Capital de " . MAIN_INFO_CAPITAL." ".$conf->monnaie; $ligne="SARL au Capital de " . MAIN_INFO_CAPITAL." ".$conf->monnaie;
if (defined(MAIN_INFO_SIREN) && MAIN_INFO_SIREN) { }
$ligne.=" - ".$langs->transcountry("ProfId2",$this->code_pays).": ".MAIN_INFO_SIREN; if (defined('MAIN_INFO_SIREN') && MAIN_INFO_SIREN) {
} $ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".MAIN_INFO_SIREN;
if (defined(MAIN_INFO_RCS) && MAIN_INFO_RCS) { }
$ligne.=" - ".$langs->transcountry("ProfId3",$this->code_pays).": ".MAIN_INFO_RCS; if (defined('MAIN_INFO_RCS') && MAIN_INFO_RCS) {
} $ligne.=($ligne?" - ":"").$langs->transcountry("ProfId4",$this->code_pays).": ".MAIN_INFO_RCS;
}
if ($ligne) {
$pdf->SetY(-$footy);
$pdf->MultiCell(190, 3, $ligne, 0, 'C'); $pdf->MultiCell(190, 3, $ligne, 0, 'C');
$footy-=3; $footy-=3;
} }