forked from Wavyzz/dolibarr
Fix: bug #22074 : Problme d'affichage sur propale avec contact
This commit is contained in:
@@ -931,7 +931,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
// Nom client
|
||||
$pdf->SetXY(102,$posy+3);
|
||||
$pdf->SetFont('Arial','B',11);
|
||||
$pdf->MultiCell(106,4, $object->client->nom, 0, 'L');
|
||||
$pdf->MultiCell(96,4, $object->client->nom, 0, 'L');
|
||||
|
||||
// Nom du contact suivi commande si c'est une soci<63>t<EFBFBD>
|
||||
$arrayidcontact = $object->getIdContact('external','CUSTOMER');
|
||||
@@ -949,7 +949,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
$carac_client.="\n".$object->client->adresse;
|
||||
$carac_client.="\n".$object->client->cp . " " . $object->client->ville."\n";
|
||||
|
||||
//Pays si diff<EFBFBD>rent de l'<EFBFBD>metteur
|
||||
//Pays si defini et different de l'emetteur
|
||||
if ($this->emetteur->pays_code != $object->client->pays_code)
|
||||
{
|
||||
$carac_client.=$object->client->pays."\n";
|
||||
@@ -958,6 +958,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
// Num<75>ro TVA intracom
|
||||
if ($object->client->tva_intra) $carac_client.="\n".$outputlangs->transnoentities("VATIntraShort").': '.$object->client->tva_intra;
|
||||
$pdf->SetFont('Arial','',9);
|
||||
$posy=$pdf->GetY()-9; //Auto Y coord readjust for multiline name
|
||||
$pdf->SetXY(102,$posy+6);
|
||||
$pdf->MultiCell(86,4, $carac_client);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user