From b9dc21e2306769051da8125c772d473a5660d4d5 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Fri, 10 Feb 2006 03:55:37 +0000 Subject: [PATCH] =?UTF-8?q?modif=20multiprix=20:=20si=20les=20niveau=20de?= =?UTF-8?q?=20prix=20autre=20que=20le=20premier=20sont=20=E0=200.00=20ils?= =?UTF-8?q?=20prennent=20par=20d=E9faut=20la=20valeur=20du=20prix=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 6b860ac37d4..4a7c5845f5d 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -597,6 +597,7 @@ class Product return -1; } } + $this -> multiprices[1] = $this->price; for($i=2;$i<=$conf->global->PRODUIT_MULTIPRICES_LIMIT;$i++) { $sql= "SELECT price, tva_tx, envente "; @@ -609,8 +610,10 @@ class Product if ( $result ) { $result = $this->db->fetch_array(); - if($result["price"] != "") - $this -> multiprices[$i]=$result["price"]; + if($result["price"] != "" && $result["price"] != "0.00") + $this -> multiprices[$i]=$result["price"]; + else + $this -> multiprices[$i]=$this->price; } else {