Fix: contact of delivery of order not visible into typhon pdf.
This commit is contained in:
parent
4da918ce01
commit
647d431857
@ -197,16 +197,16 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
$tplidx = $pdf->importPage(1);
|
||||
}
|
||||
|
||||
// Complete object by loading several other informations
|
||||
// We get the shipment that is the origin of delivery receipt
|
||||
$expedition=new Expedition($this->db);
|
||||
$result = $expedition->fetch($object->expedition_id);
|
||||
|
||||
$result = $expedition->fetch($object->origin_id);
|
||||
// Now we get the order that is origin of shipment
|
||||
$commande = new Commande($this->db);
|
||||
if ($expedition->origin == 'commande')
|
||||
{
|
||||
$commande->fetch($expedition->origin_id);
|
||||
}
|
||||
$object->commande=$commande;
|
||||
$object->commande=$commande; // We set order of shipment onto delivery.
|
||||
|
||||
|
||||
$pdf->Open();
|
||||
|
||||
@ -54,8 +54,6 @@ class Livraison extends CommonObject
|
||||
var $note_public;
|
||||
var $note_private;
|
||||
|
||||
var $expedition_id;
|
||||
|
||||
var $date_delivery; // Date really received
|
||||
var $date_creation;
|
||||
var $date_valid;
|
||||
|
||||
@ -185,7 +185,7 @@ if ($action == 'builddoc') // En get ou en post
|
||||
$object = new Livraison($db);
|
||||
$object->fetch($id);
|
||||
$object->fetch_thirdparty();
|
||||
|
||||
|
||||
// Save last template used to generate document
|
||||
if (GETPOST('model')) $object->setDocModel($user, GETPOST('model','alpha'));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user