98 |
\remarks MAIN_INFO_CAPITAL |
\remarks MAIN_INFO_CAPITAL |
99 |
\remarks MAIN_INFO_TVAINTRA |
\remarks MAIN_INFO_TVAINTRA |
100 |
\remarks FAC_PDF_LOGO |
\remarks FAC_PDF_LOGO |
|
\remarks FACTURE_CODEPRODUITSERVICE |
|
101 |
\remarks FACTURE_CHQ_NUMBER |
\remarks FACTURE_CHQ_NUMBER |
102 |
\remarks FACTURE_RIB_NUMBER |
\remarks FACTURE_RIB_NUMBER |
103 |
\remarks FAC_PDF_INTITULE |
\remarks FAC_PDF_INTITULE |
676 |
$pdf->MultiCell(82, 34, "", 0, 'R', 1); |
$pdf->MultiCell(82, 34, "", 0, 'R', 1); |
677 |
|
|
678 |
|
|
679 |
$pdf->SetXY(10,$posy+4); |
$pdf->SetXY(10,$posy+3); |
680 |
|
|
681 |
// Nom emetteur |
// Nom emetteur |
682 |
$pdf->SetTextColor(0,0,60); |
$pdf->SetTextColor(0,0,60); |
683 |
$pdf->SetFont('Arial','B',11); |
$pdf->SetFont('Arial','B',11); |
684 |
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) // Prioritaire sur MAIN_INFO_SOCIETE_NOM |
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) // Prioritaire sur MAIN_INFO_SOCIETE_NOM |
685 |
{ |
{ |
686 |
$pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L'); |
$pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L'); |
687 |
} |
} |
688 |
else // Par defaut |
else // Par defaut |
689 |
{ |
{ |
690 |
$pdf->MultiCell(80, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L'); |
$pdf->MultiCell(80, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L'); |
691 |
} |
} |
692 |
|
|
693 |
// Caractéristiques emetteur |
// Caractéristiques emetteur |
694 |
$pdf->SetFont('Arial','',9); |
$pdf->SetFont('Arial','',9); |
696 |
{ |
{ |
697 |
$pdf->MultiCell(80, 4, FAC_PDF_ADRESSE); |
$pdf->MultiCell(80, 4, FAC_PDF_ADRESSE); |
698 |
} |
} |
699 |
|
$pdf->MultiCell(80, 4, "\n"); |
700 |
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL) |
if (defined("FAC_PDF_TEL") && FAC_PDF_TEL) |
701 |
{ |
{ |
702 |
$pdf->MultiCell(80, 4, $langs->trans("Phone").": ".FAC_PDF_TEL); |
$pdf->MultiCell(80, 4, $langs->trans("Phone").": ".FAC_PDF_TEL); |
714 |
$pdf->MultiCell(80, 4, $langs->trans("Web").": ".FAC_PDF_WWW); |
$pdf->MultiCell(80, 4, $langs->trans("Web").": ".FAC_PDF_WWW); |
715 |
} |
} |
716 |
|
|
|
$pdf->SetFont('Arial','',7); |
|
|
if (defined("MAIN_INFO_SIREN") && MAIN_INFO_SIREN) |
|
|
{ |
|
|
$pdf->MultiCell(80, 4, $langs->transcountry("ProfId1",$this->code_pays).": ".MAIN_INFO_SIREN); |
|
|
} |
|
|
elseif (defined("MAIN_INFO_SIRET") && MAIN_INFO_SIRET) |
|
|
{ |
|
|
$pdf->MultiCell(80, 4, $langs->transcountry("ProfId2",$this->code_pays).": ".MAIN_INFO_SIRET); |
|
|
} |
|
|
|
|
|
|
|
717 |
// Client destinataire |
// Client destinataire |
718 |
$posy=42; |
$posy=42; |
719 |
$pdf->SetTextColor(0,0,0); |
$pdf->SetTextColor(0,0,0); |
723 |
$fac->fetch_client(); |
$fac->fetch_client(); |
724 |
|
|
725 |
// Nom client |
// Nom client |
726 |
$pdf->SetXY(102,$posy+4); |
$pdf->SetXY(102,$posy+3); |
727 |
$pdf->SetFont('Arial','B',11); |
$pdf->SetFont('Arial','B',11); |
728 |
$pdf->MultiCell(86,4, $fac->client->nom, 0, 'L'); |
$pdf->MultiCell(86,4, $fac->client->nom, 0, 'L'); |
729 |
|
|
730 |
// Caractéristiques client |
// Caractéristiques client |
731 |
|
$carac_client=$fac->client->adresse; |
732 |
|
$carac_client.="\n".$fac->client->cp . " " . $fac->client->ville; |
733 |
|
if ($fac->client->tva_intra) $carac_client.="\n\n".$langs->trans("VATIntraShort").': '.$fac->client->tva_intra; |
734 |
$pdf->SetFont('Arial','B',9); |
$pdf->SetFont('Arial','B',9); |
735 |
$pdf->SetXY(102,$posy+12); |
$pdf->SetXY(102,$posy+7); |
736 |
$pdf->MultiCell(86,4, $fac->client->adresse . "\n" . $fac->client->cp . " " . $fac->client->ville); |
$pdf->MultiCell(86,4, $carac_client); |
737 |
|
|
738 |
// Cadre client destinataire |
// Cadre client destinataire |
739 |
$pdf->rect(100, $posy, 100, 34); |
$pdf->rect(100, $posy, 100, 34); |
771 |
$ligne=""; |
$ligne=""; |
772 |
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE) |
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE) |
773 |
{ |
{ |
774 |
$ligne=.($ligne?" - ":"").$html->forme_juridique_name($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE); |
$ligne.=($ligne?" - ":"").$html->forme_juridique_name($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE); |
775 |
} |
} |
776 |
if ($conf->global->MAIN_INFO_CAPITAL) |
if ($conf->global->MAIN_INFO_CAPITAL) |
777 |
{ |
{ |
778 |
$ligne=.($ligne?" - ":"")."Capital de " . MAIN_INFO_CAPITAL." ".$langs->trans("Currency".$conf->monnaie); |
$ligne.=($ligne?" - ":"")."Capital de " . MAIN_INFO_CAPITAL." ".$langs->trans("Currency".$conf->monnaie); |
779 |
} |
} |
780 |
if ($conf->global->MAIN_INFO_SIREN) |
if ($conf->global->MAIN_INFO_SIREN) |
781 |
{ |
{ |