bad converting on php 7 is totalpaid is null
display a warning error
This commit is contained in:
parent
99fcab80d8
commit
7f6c29fd65
@ -2058,6 +2058,7 @@ else
|
|||||||
$totalpaid += $objp->amount;
|
$totalpaid += $objp->amount;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
if ( !is_null($totalpaid))
|
||||||
$totalpaid = price2num($totalpaid); // Round $totalpaid to fix floating problem after addition into loop
|
$totalpaid = price2num($totalpaid); // Round $totalpaid to fix floating problem after addition into loop
|
||||||
|
|
||||||
$remaintopay = price2num($object->total_ttc - $totalpaid);
|
$remaintopay = price2num($object->total_ttc - $totalpaid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user