Fix the remainder to pay amount (#6486)
The commit fix the remainder to pay amount (`$restapayer` value) in a supplier invoice card.
This commit is contained in:
parent
f67c967d0b
commit
840408c1d2
@ -2411,6 +2411,8 @@ else
|
|||||||
print $langs->trans('AlreadyPaid');
|
print $langs->trans('AlreadyPaid');
|
||||||
print ' :</td><td align="right"'.(($totalpaye > 0)?' class="amountalreadypaid"':'').'>' . price($totalpaye) . '</td><td> </td></tr>';
|
print ' :</td><td align="right"'.(($totalpaye > 0)?' class="amountalreadypaid"':'').'>' . price($totalpaye) . '</td><td> </td></tr>';
|
||||||
|
|
||||||
|
$totalpaye = $object->getSommePaiement();
|
||||||
|
$resteapayer = $object->total_ttc - $totalpaye;
|
||||||
$resteapayeraffiche = $resteapayer;
|
$resteapayeraffiche = $resteapayer;
|
||||||
$cssforamountpaymentcomplete = 'amountpaymentcomplete';
|
$cssforamountpaymentcomplete = 'amountpaymentcomplete';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user