|
@@ -1171,6 +1171,10 @@ if (empty($reshook)) {
|
|
|
if (!empty($price_ht) || (string) $price_ht === '0') {
|
|
|
$pu_ht = price2num($price_ht, 'MU');
|
|
|
$pu_ttc = price2num($pu_ht * (1 + ((float) $tmpvat / 100)), 'MU');
|
|
|
+ } elseif (!empty($price_ht_devise) || (string) $price_ht_devise === '0') {
|
|
|
+ $pu_ht_devise = price2num($price_ht_devise, 'MU');
|
|
|
+ $pu_ht = '';
|
|
|
+ $pu_ttc = '';
|
|
|
} elseif (!empty($price_ttc) || (string) $price_ttc === '0') {
|
|
|
$pu_ttc = price2num($price_ttc, 'MU');
|
|
|
$pu_ht = price2num($pu_ttc / (1 + ((float) $tmpvat / 100)), 'MU');
|