665 |
|
|
666 |
// Emetteur |
// Emetteur |
667 |
$posy=42; |
$posy=42; |
668 |
|
$hautcadre=40; |
669 |
$pdf->SetTextColor(0,0,0); |
$pdf->SetTextColor(0,0,0); |
670 |
$pdf->SetFont('Arial','',8); |
$pdf->SetFont('Arial','',8); |
671 |
$pdf->SetXY(10,$posy-5); |
$pdf->SetXY(10,$posy-5); |
674 |
|
|
675 |
$pdf->SetXY(10,$posy); |
$pdf->SetXY(10,$posy); |
676 |
$pdf->SetFillColor(230,230,230); |
$pdf->SetFillColor(230,230,230); |
677 |
$pdf->MultiCell(82, 34, "", 0, 'R', 1); |
$pdf->MultiCell(82, $hautcadre, "", 0, 'R', 1); |
678 |
|
|
679 |
|
|
680 |
$pdf->SetXY(10,$posy+3); |
$pdf->SetXY(10,$posy+3); |
722 |
$pdf->SetXY(102,$posy-5); |
$pdf->SetXY(102,$posy-5); |
723 |
$pdf->MultiCell(80,5, $langs->trans("BillTo").":"); |
$pdf->MultiCell(80,5, $langs->trans("BillTo").":"); |
724 |
$fac->fetch_client(); |
$fac->fetch_client(); |
725 |
|
// Cadre client destinataire |
726 |
|
$pdf->rect(100, $posy, 100, $hautcadre); |
727 |
|
|
728 |
// Nom client |
// Nom client |
729 |
$pdf->SetXY(102,$posy+3); |
$pdf->SetXY(102,$posy+3); |
738 |
$pdf->SetXY(102,$posy+7); |
$pdf->SetXY(102,$posy+7); |
739 |
$pdf->MultiCell(86,4, $carac_client); |
$pdf->MultiCell(86,4, $carac_client); |
740 |
|
|
|
// Cadre client destinataire |
|
|
$pdf->rect(100, $posy, 100, 34); |
|
|
|
|
741 |
// Montants exprimés en |
// Montants exprimés en |
742 |
$pdf->SetTextColor(0,0,0); |
$pdf->SetTextColor(0,0,0); |
743 |
$pdf->SetFont('Arial','',10); |
$pdf->SetFont('Arial','',10); |
768 |
$footy=13; |
$footy=13; |
769 |
$pdf->SetFont('Arial','',8); |
$pdf->SetFont('Arial','',8); |
770 |
|
|
771 |
|
// Premiere ligne d'info réglementaires |
772 |
$ligne=""; |
$ligne=""; |
773 |
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE) |
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE) |
774 |
{ |
{ |
776 |
} |
} |
777 |
if ($conf->global->MAIN_INFO_CAPITAL) |
if ($conf->global->MAIN_INFO_CAPITAL) |
778 |
{ |
{ |
779 |
$ligne.=($ligne?" - ":"")."Capital de " . MAIN_INFO_CAPITAL." ".$langs->trans("Currency".$conf->monnaie); |
$ligne.=($ligne?" - ":"").$langs->trans("CapitalOf",$conf->global->MAIN_INFO_CAPITAL)." ".$langs->trans("Currency".$conf->monnaie); |
780 |
} |
} |
781 |
if ($conf->global->MAIN_INFO_SIREN) |
if ($conf->global->MAIN_INFO_SIREN) |
782 |
{ |
{ |
783 |
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".MAIN_INFO_SIREN; |
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".$conf->global->MAIN_INFO_SIREN; |
784 |
} |
} |
785 |
if ($conf->global->MAIN_INFO_SIRET) |
if ($conf->global->MAIN_INFO_SIRET) |
786 |
{ |
{ |
787 |
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".MAIN_INFO_SIRET; |
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId2",$this->code_pays).": ".$conf->global->MAIN_INFO_SIRET; |
|
} |
|
|
if ($conf->global->MAIN_INFO_RCS) |
|
|
{ |
|
|
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId4",$this->code_pays).": ".MAIN_INFO_RCS; |
|
788 |
} |
} |
789 |
if ($ligne) |
if ($ligne) |
790 |
{ |
{ |
791 |
$pdf->SetY(-$footy); |
$pdf->SetXY(8,-$footy); |
792 |
$pdf->MultiCell(190, 3, $ligne, 0, 'C'); |
$pdf->MultiCell(200, 2, $ligne, 0, 'C', 0); |
793 |
} |
} |
794 |
|
|
795 |
// Affiche le numéro de TVA intracommunautaire |
// Deuxieme ligne d'info réglementaires |
796 |
if ($conf->global->MAIN_INFO_TVAINTRA == 'MAIN_INFO_TVAINTRA') { |
$ligne=""; |
797 |
$footy-=3; |
if ($conf->global->MAIN_INFO_RCS) |
798 |
$pdf->SetY(-$footy); |
{ |
799 |
$pdf->SetTextColor(200,0,0); |
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId4",$this->code_pays).": ".$conf->global->MAIN_INFO_RCS; |
|
$pdf->SetFont('Arial','B',8); |
|
|
$pdf->MultiCell(190, 3, $langs->trans("ErrorVATIntraNotConfigured"),0,'L',0); |
|
|
$pdf->MultiCell(190, 3, $langs->trans("ErrorGoToGlobalSetup"),0,'L',0); |
|
|
$pdf->SetTextColor(0,0,0); |
|
|
} |
|
|
elseif ($conf->global->MAIN_INFO_TVAINTRA != '') { |
|
|
$footy-=3; |
|
|
$pdf->SetY(-$footy); |
|
|
$pdf->MultiCell(190, 3, $langs->trans("TVAIntra").": ".MAIN_INFO_TVAINTRA, 0, 'C'); |
|
800 |
} |
} |
801 |
|
if ($conf->global->MAIN_INFO_TVAINTRA != '') |
802 |
|
{ |
803 |
|
$ligne.=($ligne?" - ":"").$langs->trans("VATIntraShort").": ".$conf->global->MAIN_INFO_TVAINTRA; |
804 |
|
} |
805 |
|
$footy-=3; |
806 |
|
$pdf->SetY(-$footy); |
807 |
|
$pdf->MultiCell(200, 2, $ligne , 0, 'C'); |
808 |
|
|
809 |
$pdf->SetXY(-20,-$footy); |
$pdf->SetXY(-20,-$footy); |
810 |
$pdf->MultiCell(10, 3, $pdf->PageNo().'/{nb}', 0, 'R'); |
$pdf->MultiCell(10, 2, $pdf->PageNo().'/{nb}', 0, 'R', 0); |
811 |
} |
} |
812 |
|
|
813 |
} |
} |