From ef0a3ba35d1cdb25528218c62fc0a6be434dd211 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 31 May 2006 13:35:48 +0000 Subject: [PATCH] =?UTF-8?q?D=E9but=20ajout=20bon=20de=20livraison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/livraison/livraison.class.php | 2 +- htdocs/livraison/mods/pdf/pdf_typhon.modules.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);