Merge pull request #11704 from defrance/patch-142
bad converting on php 7 is totalpaid is null
This commit is contained in:
commit
48361c481f
@ -2058,8 +2058,11 @@ else
|
||||
$totalpaid += $objp->amount;
|
||||
$i++;
|
||||
}
|
||||
$totalpaid = price2num($totalpaid); // Round $totalpaid to fix floating problem after addition into loop
|
||||
|
||||
if (! is_null($totalpaid))
|
||||
{
|
||||
$totalpaid = price2num($totalpaid); // Round $totalpaid to fix floating problem after addition into loop
|
||||
}
|
||||
|
||||
$remaintopay = price2num($object->total_ttc - $totalpaid);
|
||||
$resteapayeraffiche = $remaintopay;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user