From 04a447ca01ef6e5b44c8ff24b8811e4fd21e7c04 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 26 Nov 2003 15:31:30 +0000 Subject: [PATCH] Ajout entrepot dans le fetch --- htdocs/expedition/expedition.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/expedition/expedition.class.php b/htdocs/expedition/expedition.class.php index bb7a15490e3..43038eae140 100644 --- a/htdocs/expedition/expedition.class.php +++ b/htdocs/expedition/expedition.class.php @@ -174,7 +174,7 @@ class Expedition */ Function fetch ($id) { - $sql = "SELECT e.rowid, e.date_creation, e.ref, e.fk_user_author, e.fk_statut, e.fk_commande"; + $sql = "SELECT e.rowid, e.date_creation, e.ref, e.fk_user_author, e.fk_statut, e.fk_commande, e.fk_entrepot"; $sql .= ", ".$this->db->pdate("e.date_expedition")." as date_expedition "; $sql .= " FROM llx_expedition as e"; $sql .= " WHERE e.rowid = $id"; @@ -191,7 +191,7 @@ class Expedition $this->commande_id = $obj->fk_commande; $this->user_author_id = $obj->fk_user_author; $this->date = $obj->date_expedition; - + $this->entrepot_id = $obj->fk_entrepot; $this->db->free(); if ($this->statut == 0)