From c95668329639fc88c45e72f0cd69af83034ffd62 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 3 Mar 2005 15:38:51 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20deux=20param=E8tres=20isproduct=20et=20?= =?UTF-8?q?isservice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index bffee53791b..41474407b83 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -350,6 +350,17 @@ class Product $this->label_url = ''.$this->libelle.''; + if ($this->type == 0) + { + $this->isproduct = 1; + $this->isservice = 0; + } + else + { + $this->isproduct = 0; + $this->isservice = 1; + } + $this->db->free(); $sql = "SELECT reel, fk_entrepot";