Update card.php
This commit is contained in:
parent
7f6c29fd65
commit
bc66be51a8
@ -2058,9 +2058,11 @@ else
|
|||||||
$totalpaid += $objp->amount;
|
$totalpaid += $objp->amount;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
if ( !is_null($totalpaid))
|
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);
|
||||||
$resteapayeraffiche = $remaintopay;
|
$resteapayeraffiche = $remaintopay;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user