Amélioration du modele facture crabe et propal azur pour mis en conformité réglementaires (france)
This commit is contained in:
parent
699c12cc0c
commit
0ec4484fff
@ -665,6 +665,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
|
|
||||||
// Emetteur
|
// Emetteur
|
||||||
$posy=42;
|
$posy=42;
|
||||||
|
$hautcadre=40;
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('Arial','',8);
|
$pdf->SetFont('Arial','',8);
|
||||||
$pdf->SetXY(10,$posy-5);
|
$pdf->SetXY(10,$posy-5);
|
||||||
@ -673,7 +674,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
|
|
||||||
$pdf->SetXY(10,$posy);
|
$pdf->SetXY(10,$posy);
|
||||||
$pdf->SetFillColor(230,230,230);
|
$pdf->SetFillColor(230,230,230);
|
||||||
$pdf->MultiCell(82, 34, "", 0, 'R', 1);
|
$pdf->MultiCell(82, $hautcadre, "", 0, 'R', 1);
|
||||||
|
|
||||||
|
|
||||||
$pdf->SetXY(10,$posy+3);
|
$pdf->SetXY(10,$posy+3);
|
||||||
@ -721,6 +722,8 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetXY(102,$posy-5);
|
$pdf->SetXY(102,$posy-5);
|
||||||
$pdf->MultiCell(80,5, $langs->trans("BillTo").":");
|
$pdf->MultiCell(80,5, $langs->trans("BillTo").":");
|
||||||
$fac->fetch_client();
|
$fac->fetch_client();
|
||||||
|
// Cadre client destinataire
|
||||||
|
$pdf->rect(100, $posy, 100, $hautcadre);
|
||||||
|
|
||||||
// Nom client
|
// Nom client
|
||||||
$pdf->SetXY(102,$posy+3);
|
$pdf->SetXY(102,$posy+3);
|
||||||
@ -735,9 +738,6 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetXY(102,$posy+7);
|
$pdf->SetXY(102,$posy+7);
|
||||||
$pdf->MultiCell(86,4, $carac_client);
|
$pdf->MultiCell(86,4, $carac_client);
|
||||||
|
|
||||||
// Cadre client destinataire
|
|
||||||
$pdf->rect(100, $posy, 100, 34);
|
|
||||||
|
|
||||||
// Montants exprimés en
|
// Montants exprimés en
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('Arial','',10);
|
$pdf->SetFont('Arial','',10);
|
||||||
@ -768,6 +768,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$footy=13;
|
$footy=13;
|
||||||
$pdf->SetFont('Arial','',8);
|
$pdf->SetFont('Arial','',8);
|
||||||
|
|
||||||
|
// Premiere ligne d'info réglementaires
|
||||||
$ligne="";
|
$ligne="";
|
||||||
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE)
|
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE)
|
||||||
{
|
{
|
||||||
@ -775,44 +776,38 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
}
|
}
|
||||||
if ($conf->global->MAIN_INFO_CAPITAL)
|
if ($conf->global->MAIN_INFO_CAPITAL)
|
||||||
{
|
{
|
||||||
$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);
|
||||||
}
|
}
|
||||||
if ($conf->global->MAIN_INFO_SIREN)
|
if ($conf->global->MAIN_INFO_SIREN)
|
||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".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).": ".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;
|
|
||||||
}
|
}
|
||||||
if ($ligne)
|
if ($ligne)
|
||||||
{
|
{
|
||||||
$pdf->SetY(-$footy);
|
$pdf->SetXY(8,-$footy);
|
||||||
$pdf->MultiCell(190, 3, $ligne, 0, 'C');
|
$pdf->MultiCell(200, 2, $ligne, 0, 'C', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Affiche le numéro de TVA intracommunautaire
|
// Deuxieme ligne d'info réglementaires
|
||||||
if ($conf->global->MAIN_INFO_TVAINTRA == 'MAIN_INFO_TVAINTRA') {
|
$ligne="";
|
||||||
$footy-=3;
|
if ($conf->global->MAIN_INFO_RCS)
|
||||||
$pdf->SetY(-$footy);
|
{
|
||||||
$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 != '') {
|
if ($conf->global->MAIN_INFO_TVAINTRA != '')
|
||||||
$footy-=3;
|
{
|
||||||
$pdf->SetY(-$footy);
|
$ligne.=($ligne?" - ":"").$langs->trans("VATIntraShort").": ".$conf->global->MAIN_INFO_TVAINTRA;
|
||||||
$pdf->MultiCell(190, 3, $langs->trans("TVAIntra").": ".MAIN_INFO_TVAINTRA, 0, 'C');
|
|
||||||
}
|
}
|
||||||
|
$footy-=3;
|
||||||
|
$pdf->SetY(-$footy);
|
||||||
|
$pdf->MultiCell(200, 2, $ligne , 0, 'C');
|
||||||
|
|
||||||
$pdf->SetXY(-20,-$footy);
|
$pdf->SetXY(-20,-$footy);
|
||||||
$pdf->MultiCell(10, 3, $pdf->PageNo().'/{nb}', 0, 'R');
|
$pdf->MultiCell(10, 2, $pdf->PageNo().'/{nb}', 0, 'R', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -695,6 +695,7 @@ class pdf_propale_azur extends ModelePDFPropales
|
|||||||
$footy=13;
|
$footy=13;
|
||||||
$pdf->SetFont('Arial','',8);
|
$pdf->SetFont('Arial','',8);
|
||||||
|
|
||||||
|
// Premiere ligne d'info réglementaires
|
||||||
$ligne="";
|
$ligne="";
|
||||||
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE)
|
if ($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE)
|
||||||
{
|
{
|
||||||
@ -702,44 +703,38 @@ class pdf_propale_azur extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
if ($conf->global->MAIN_INFO_CAPITAL)
|
if ($conf->global->MAIN_INFO_CAPITAL)
|
||||||
{
|
{
|
||||||
$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);
|
||||||
}
|
}
|
||||||
if ($conf->global->MAIN_INFO_SIREN)
|
if ($conf->global->MAIN_INFO_SIREN)
|
||||||
{
|
{
|
||||||
$ligne.=($ligne?" - ":"").$langs->transcountry("ProfId1",$this->code_pays).": ".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).": ".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;
|
|
||||||
}
|
}
|
||||||
if ($ligne)
|
if ($ligne)
|
||||||
{
|
{
|
||||||
$pdf->SetY(-$footy);
|
$pdf->SetXY(8,-$footy);
|
||||||
$pdf->MultiCell(190, 3, $ligne, 0, 'C');
|
$pdf->MultiCell(200, 2, $ligne, 0, 'C', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Affiche le numéro de TVA intracommunautaire
|
// Deuxieme ligne d'info réglementaires
|
||||||
if ($conf->global->MAIN_INFO_TVAINTRA == 'MAIN_INFO_TVAINTRA') {
|
$ligne="";
|
||||||
$footy-=3;
|
if ($conf->global->MAIN_INFO_RCS)
|
||||||
$pdf->SetY(-$footy);
|
{
|
||||||
$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 != '') {
|
if ($conf->global->MAIN_INFO_TVAINTRA != '')
|
||||||
$footy-=3;
|
{
|
||||||
$pdf->SetY(-$footy);
|
$ligne.=($ligne?" - ":"").$langs->trans("VATIntraShort").": ".$conf->global->MAIN_INFO_TVAINTRA;
|
||||||
$pdf->MultiCell(190, 3, $langs->trans("TVAIntra").": ".MAIN_INFO_TVAINTRA, 0, 'C');
|
|
||||||
}
|
}
|
||||||
|
$footy-=3;
|
||||||
|
$pdf->SetY(-$footy);
|
||||||
|
$pdf->MultiCell(200, 2, $ligne , 0, 'C');
|
||||||
|
|
||||||
$pdf->SetXY(-20,-$footy);
|
$pdf->SetXY(-20,-$footy);
|
||||||
$pdf->MultiCell(10, 3, $pdf->PageNo().'/{nb}', 0, 'R');
|
$pdf->MultiCell(10, 2, $pdf->PageNo().'/{nb}', 0, 'R', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -79,6 +79,7 @@ LastContacts=Last contacts
|
|||||||
MyContacts=My contacts
|
MyContacts=My contacts
|
||||||
Phones=Phones
|
Phones=Phones
|
||||||
Capital=Capital
|
Capital=Capital
|
||||||
|
CapitalOf=Capital of %s
|
||||||
EditCompany=Edit company
|
EditCompany=Edit company
|
||||||
ThisUserIsNot=This user is not a prospect, customer nor supplier
|
ThisUserIsNot=This user is not a prospect, customer nor supplier
|
||||||
VATIntraCheckableOnEUSite=Intracomunnautary VAT can be checked on European commision <a href="http://europa.eu.int/comm/taxation_customs/vies/en/vieshome.htm" target="_blank">site</a>
|
VATIntraCheckableOnEUSite=Intracomunnautary VAT can be checked on European commision <a href="http://europa.eu.int/comm/taxation_customs/vies/en/vieshome.htm" target="_blank">site</a>
|
||||||
|
|||||||
@ -46,7 +46,7 @@ ProfId2PT=Social security number
|
|||||||
ProfId3PT=Commercial Record number
|
ProfId3PT=Commercial Record number
|
||||||
ProfId4PT=Conservatory
|
ProfId4PT=Conservatory
|
||||||
TVAIntra=Numéro de TVA Intracommunautaire
|
TVAIntra=Numéro de TVA Intracommunautaire
|
||||||
VATIntraShort=Num TVA Intra-communautaire
|
VATIntraShort=N° TVA Intra-communautaire
|
||||||
ProspectCustomer=Prospect / Client
|
ProspectCustomer=Prospect / Client
|
||||||
Prospect=Prospect
|
Prospect=Prospect
|
||||||
CustomerCard=Fiche Client
|
CustomerCard=Fiche Client
|
||||||
@ -79,6 +79,7 @@ LastContacts=Derniers contacts
|
|||||||
MyContacts=Mes contacts
|
MyContacts=Mes contacts
|
||||||
Phones=Téléphones
|
Phones=Téléphones
|
||||||
Capital=Capital
|
Capital=Capital
|
||||||
|
CapitalOf=Capital de %s
|
||||||
EditCompany=Modification société
|
EditCompany=Modification société
|
||||||
ThisUserIsNot=Cet utilisateur n'est ni un prospect, ni un client, ni un fournisseur
|
ThisUserIsNot=Cet utilisateur n'est ni un prospect, ni un client, ni un fournisseur
|
||||||
VATIntraCheckableOnEUSite=(Vérifiable sur le <a href="http://europa.eu.int/comm/taxation_customs/vies/fr/vieshome.htm" target="_blank">site</a> de la Commission Européenne)
|
VATIntraCheckableOnEUSite=(Vérifiable sur le <a href="http://europa.eu.int/comm/taxation_customs/vies/fr/vieshome.htm" target="_blank">site</a> de la Commission Européenne)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user