Fix: Can update price even with "NPR" VAT rates.
This commit is contained in:
parent
2fd22e6865
commit
fb4119ae7d
@ -11,6 +11,7 @@ For users:
|
|||||||
- New: Complete theme bluelagoon and rodolphe
|
- New: Complete theme bluelagoon and rodolphe
|
||||||
- Fix: Customer code was not correct on PDF it if contains special
|
- Fix: Customer code was not correct on PDF it if contains special
|
||||||
characters.
|
characters.
|
||||||
|
- Fix: Can update price even with "NPR" VAT rates.
|
||||||
|
|
||||||
For translators:
|
For translators:
|
||||||
- Update some language files.
|
- Update some language files.
|
||||||
|
|||||||
@ -70,7 +70,7 @@ if ($_POST["action"] == 'update_price' && ! $_POST["cancel"] && $user->rights->p
|
|||||||
$newprice=price2num($_POST["price_".$i],'MU');
|
$newprice=price2num($_POST["price_".$i],'MU');
|
||||||
$newprice_min=price2num($_POST["price_min_".$i],'MU');
|
$newprice_min=price2num($_POST["price_min_".$i],'MU');
|
||||||
$newpricebase=$_POST["multiprices_base_type_".$i];
|
$newpricebase=$_POST["multiprices_base_type_".$i];
|
||||||
$newnpr=(eregi('\*',$_POST["tva_tx_".$i]) ? 1 : $defaultnpr);
|
$newnpr=(eregi('\*',$_POST["tva_tx_".$i]) ? 1 : 0);
|
||||||
$newvat=eregi_replace('\*','',$_POST["tva_tx_".$i]);
|
$newvat=eregi_replace('\*','',$_POST["tva_tx_".$i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ if ($_POST["action"] == 'update_price' && ! $_POST["cancel"] && $user->rights->p
|
|||||||
$newprice=price2num($_POST["price"],'MU');
|
$newprice=price2num($_POST["price"],'MU');
|
||||||
$newprice_min=price2num($_POST["price_min"],'MU');
|
$newprice_min=price2num($_POST["price_min"],'MU');
|
||||||
$newpricebase=$_POST["price_base_type"];
|
$newpricebase=$_POST["price_base_type"];
|
||||||
$newnpr=(eregi('\*',$_POST["tva_tx"]) ? 1 : $defaultnpr);
|
$newnpr=(eregi('\*',$_POST["tva_tx"]) ? 1 : 0);
|
||||||
$newvat=eregi_replace('\*','',$_POST["tva_tx"]);
|
$newvat=eregi_replace('\*','',$_POST["tva_tx"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user