Merge pull request #8270 from hregis/7.0_bug4

Fix: avoid Warning: A non-numeric value encountered
This commit is contained in:
Laurent Destailleur
2018-03-05 20:44:23 +01:00
committed by GitHub

View File

@@ -384,6 +384,7 @@ class SupplierProposal extends CommonObject
if (empty($info_bits)) $info_bits=0;
if (empty($rang)) $rang=0;
if (empty($fk_parent_line) || $fk_parent_line < 0) $fk_parent_line=0;
if (empty($pu_ht)) $pu_ht=0;
$remise_percent=price2num($remise_percent);
$qty=price2num($qty);