forked from Wavyzz/dolibarr
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -1582,7 +1582,7 @@ class Commande extends CommonOrder
|
||||
$pu_ht = price2num($pu_ht);
|
||||
$pu_ht_devise = price2num($pu_ht_devise);
|
||||
$pu_ttc = price2num($pu_ttc);
|
||||
$pa_ht = (float) price2num($pa_ht);
|
||||
$pa_ht = price2num($pa_ht); // do not convert to float here, it breaks the functioning of $pa_ht_isemptystring
|
||||
if (!preg_match('/\((.*)\)/', (string) $txtva)) {
|
||||
$txtva = price2num($txtva); // $txtva can have format '5,1' or '5.1' or '5.1(XXX)', we must clean only if '5,1'
|
||||
}
|
||||
@@ -1717,7 +1717,7 @@ class Commande extends CommonOrder
|
||||
$this->line->date_end = $date_end;
|
||||
|
||||
$this->line->fk_fournprice = $fk_fournprice;
|
||||
$this->line->pa_ht = $pa_ht;
|
||||
$this->line->pa_ht = $pa_ht; // Can be '' when not defined or 0 if defined to 0 or a price value
|
||||
|
||||
// Multicurrency
|
||||
$this->line->fk_multicurrency = $this->fk_multicurrency;
|
||||
@@ -1727,7 +1727,7 @@ class Commande extends CommonOrder
|
||||
$this->line->multicurrency_total_tva = (float) $multicurrency_total_tva;
|
||||
$this->line->multicurrency_total_ttc = (float) $multicurrency_total_ttc;
|
||||
|
||||
// TODO Ne plus utiliser
|
||||
// TODO Do not use anymore
|
||||
$this->line->price = $price;
|
||||
|
||||
if (is_array($array_options) && count($array_options) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user