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->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('Arial','B',12);
|
$pdf->SetFont('Arial','B',12);
|
||||||
$client = new Societe($this->db);
|
$client = new Societe($this->db);
|
||||||
$client->fetch($delivery->socid);
|
/*
|
||||||
$delivery->client = $client;
|
* 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->SetXY(102,42);
|
||||||
$pdf->MultiCell(96,5, $delivery->client->nom);
|
$pdf->MultiCell(96,5, $delivery->client->nom);
|
||||||
$pdf->SetFont('Arial','B',11);
|
$pdf->SetFont('Arial','B',11);
|
||||||
|
|||||||
@ -729,12 +729,18 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('Arial','',8);
|
$pdf->SetFont('Arial','',8);
|
||||||
$pdf->SetXY(102,$posy-5);
|
$pdf->SetXY(102,$posy-5);
|
||||||
$pdf->MultiCell(80,5, $langs->transnoentities("BillTo").":");
|
$pdf->MultiCell(80,5, $langs->transnoentities("DeliveryAddress").":");
|
||||||
//
|
|
||||||
$client = new Societe($this->db);
|
/*
|
||||||
$client->fetch($delivery->socid);
|
* if a delivery address is used, use that, else use the client address
|
||||||
$delivery->client = $client;
|
*/
|
||||||
//
|
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
|
// Cadre client destinataire
|
||||||
$pdf->rect(100, $posy, 100, $hautcadre);
|
$pdf->rect(100, $posy, 100, $hautcadre);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user