parent
8236ad34fa
commit
f6289297da
@ -491,6 +491,8 @@ if (empty($reshook)) {
|
||||
$tmpvat = price2num(preg_replace('/\s*\(.*\)/', '', $tva_tx));
|
||||
$tmpprodvat = price2num(preg_replace('/\s*\(.*\)/', '', $prod->tva_tx));
|
||||
|
||||
$pu_ht = price2num($price_ht, 'MU');
|
||||
|
||||
// On reevalue prix selon taux tva car taux tva transaction peut etre different
|
||||
// de ceux du produit par defaut (par exemple si pays different entre vendeur et acheteur).
|
||||
if ($tmpvat != $tmpprodvat) {
|
||||
@ -516,7 +518,7 @@ if (empty($reshook)) {
|
||||
|
||||
$fk_unit = $prod->fk_unit;
|
||||
} else {
|
||||
$pu_ht = GETPOST('price_ht');
|
||||
$pu_ht = price2num($price_ht, 'MU');
|
||||
$price_base_type = 'HT';
|
||||
$tva_tx = GETPOST('tva_tx') ?str_replace('*', '', GETPOST('tva_tx')) : 0; // tva_tx field may be disabled, so we use vat rate 0
|
||||
$tva_npr = preg_match('/\*/', GETPOST('tva_tx')) ? 1 : 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user