diff --git a/htdocs/livraison/livraison.class.php b/htdocs/livraison/livraison.class.php index 13d4cceff4b..8c8debaa752 100644 --- a/htdocs/livraison/livraison.class.php +++ b/htdocs/livraison/livraison.class.php @@ -41,7 +41,7 @@ class Livraison var $db ; var $id ; var $brouillon; - var $entrepot_id; + var $commande_id; /** * Initialisation diff --git a/htdocs/livraison/mods/pdf/pdf_typhon.modules.php b/htdocs/livraison/mods/pdf/pdf_typhon.modules.php index 482289d0ba5..3ddbf076bab 100644 --- a/htdocs/livraison/mods/pdf/pdf_typhon.modules.php +++ b/htdocs/livraison/mods/pdf/pdf_typhon.modules.php @@ -139,8 +139,10 @@ class pdf_typhon extends ModelePDFDeliveryOrder { $delivery = new Livraison($this->db); $delivery->fetch($id); + + $delivery->commande = new Livraison($this->db); $delivery->commande->id = $delivery->commande_id; - $delivery->commande = fetch_commande(); + $delivery->commande->fetch_commande(); $nblignes = sizeof($delivery->commande->lignes);