Update card.php

This commit is contained in:
Laurent Destailleur 2019-08-22 11:50:18 +02:00 committed by GitHub
parent 7f6c29fd65
commit bc66be51a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2058,9 +2058,11 @@ else
$totalpaid += $objp->amount;
$i++;
}
if ( !is_null($totalpaid))
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;