bad converting on php 7 is totalpaid is null
display a warning error
This commit is contained in:
parent
99fcab80d8
commit
7f6c29fd65
@ -2058,7 +2058,8 @@ 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