FIX : pu_ht_devise was not converted to numeric so decimals were lost

when clculating total_ht_devise
This commit is contained in:
altatof
2018-06-13 16:35:52 +02:00
parent 426eb178f2
commit d42f00bca9
4 changed files with 8 additions and 0 deletions

View File

@@ -1269,6 +1269,7 @@ class Commande extends CommonOrder
$remise_percent=price2num($remise_percent);
$qty=price2num($qty);
$pu_ht=price2num($pu_ht);
$pu_ht_devise=price2num($pu_ht_devise);
$pu_ttc=price2num($pu_ttc);
$pa_ht=price2num($pa_ht);
$txtva = price2num($txtva);
@@ -2815,6 +2816,7 @@ class Commande extends CommonOrder
$qty=price2num($qty);
$pu = price2num($pu);
$pa_ht=price2num($pa_ht);
$pu_ht_devise=price2num($pu_ht_devise);
$txtva=price2num($txtva);
$txlocaltax1=price2num($txlocaltax1);
$txlocaltax2=price2num($txlocaltax2);