2
0
forked from Wavyzz/dolibarr

FIX tic tac tic tac

This commit is contained in:
Regis Houssin
2025-01-05 16:02:23 +01:00
parent d42c8ba012
commit 22ed2d6a25

View File

@@ -1535,7 +1535,6 @@ class Commande extends CommonOrder
$pu_ht = price2num($pu_ht);
$pu_ht_devise = price2num($pu_ht_devise);
$pu_ttc = price2num($pu_ttc);
// @phpstan-ignore-next-line @phan-suppress-next-line PhanTypeMismatchProperty
$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'
@@ -4248,7 +4247,7 @@ class OrderLine extends CommonOrderLine
/**
* Buy price without taxes
* @var float
* @var float|null
*/
public $pa_ht;
public $marge_tx;