Fixed bug #18642
This commit is contained in:
parent
589ddce2e2
commit
7d30337159
@ -307,9 +307,15 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
|
||||
*/
|
||||
$pdf->SetTextColor(0,0,0);
|
||||
$pdf->SetFont('Arial','B',12);
|
||||
$client = new Societe($this->db);
|
||||
$client->fetch($delivery->socid);
|
||||
$delivery->client = $client;
|
||||
$client = new Societe($this->db);
|
||||
/*
|
||||
* if a delivery address is used, use that, else use the client address
|
||||
*/
|
||||
if ($commande->adresse_livraison_id>0) {
|
||||
$client->fetch_adresse_livraison($commande->adresse_livraison_id);
|
||||
} else {
|
||||
$client->fetch($delivery->socid);
|
||||
}
|
||||
$pdf->SetXY(102,42);
|
||||
$pdf->MultiCell(96,5, $delivery->client->nom);
|
||||
$pdf->SetFont('Arial','B',11);
|
||||
|
||||
@ -729,12 +729,18 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
$pdf->SetTextColor(0,0,0);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->SetXY(102,$posy-5);
|
||||
$pdf->MultiCell(80,5, $langs->transnoentities("BillTo").":");
|
||||
//
|
||||
$client = new Societe($this->db);
|
||||
$client->fetch($delivery->socid);
|
||||
$delivery->client = $client;
|
||||
//
|
||||
$pdf->MultiCell(80,5, $langs->transnoentities("DeliveryAddress").":");
|
||||
|
||||
/*
|
||||
* if a delivery address is used, use that, else use the client address
|
||||
*/
|
||||
if ($commande->adresse_livraison_id>0) {
|
||||
$client->fetch_adresse_livraison($commande->adresse_livraison_id);
|
||||
} else {
|
||||
$client->fetch($delivery->socid);
|
||||
}
|
||||
$delivery->client = $client;
|
||||
//
|
||||
|
||||
// Cadre client destinataire
|
||||
$pdf->rect(100, $posy, 100, $hautcadre);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user