Skip to content

Commit

Permalink
FIX Product::updatePrice() now sets new prices to Product::multiprice…
Browse files Browse the repository at this point in the history
…s_* arrays
  • Loading branch information
marcosgdf committed Nov 6, 2015
1 parent 00433e9 commit f62d6d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions htdocs/product/class/product.class.php
Expand Up @@ -1443,6 +1443,14 @@ function updatePrice($newprice, $newpricebase, $user, $newvat='',$newminprice=''
$resql=$this->db->query($sql);
if ($resql)
{
$this->multiprices[$level] = $price;
$this->multiprices_ttc[$level] = $price_ttc;
$this->multiprices_min[$level]= $price_min;
$this->multiprices_min_ttc[$level]= $price_min_ttc;
$this->multiprices_base_type[$level]= $newpricebase;
$this->multiprices_tva_tx[$level]= $newvat;
$this->multiprices_recuperableonly[$level]= $newnpr;

$this->price = $price;
$this->price_ttc = $price_ttc;
$this->price_min = $price_min;
Expand Down

0 comments on commit f62d6d1

Please sign in to comment.