Skip to content
Snippets Groups Projects
Commit 647d4318 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: contact of delivery of order not visible into typhon pdf.

parent 4da918ce
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment