From cb023f434548f624da07e80080cb95bbde55d2e5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 12 Nov 2007 19:02:37 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20la=20variable=20stock=5Freel=20n'=E9tait?= =?UTF-8?q?=20pas=20remise=20=E0=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 41fcd667ffb..6a3cadc3295 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -63,6 +63,7 @@ class Product extends CommonObject //! Type 0 for regural product, 1 for service, 2 for assembly kit, 3 for stock kit var $type; var $typestring; + var $stock_reel; var $seuil_stock_alerte; //! Duree de validite du service var $duration_value; @@ -119,6 +120,7 @@ class Product extends CommonObject $this->db = $DB; $this->id = $id ; $this->status = 0; + $this->stock_reel = 0; $this->seuil_stock_alerte = 0; $this->canvas = ''; @@ -2117,6 +2119,8 @@ class Product extends CommonObject */ function load_stock() { + $this->stock_reel = 0; + $sql = "SELECT reel, fk_entrepot"; $sql.= " FROM ".MAIN_DB_PREFIX."product_stock"; $sql.= " WHERE fk_product = '".$this->id."'";