modif multiprix : si les niveau de prix autre que le premier sont 0.00 ils prennent par dfaut la valeur du prix 1
This commit is contained in:
parent
382612ec19
commit
b9dc21e230
@ -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
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user