bad converting on php 7 is totalpaid is null

display a warning error
This commit is contained in:
BENKE Charlene 2019-08-19 15:27:21 +02:00 committed by GitHub
parent 99fcab80d8
commit 7f6c29fd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;