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:
tarrsalah 2017-03-05 12:34:22 +01:00
parent f67c967d0b
commit 840408c1d2

View File

@ -2411,6 +2411,8 @@ else
print $langs->trans('AlreadyPaid');
print ' :</td><td align="right"'.(($totalpaye > 0)?' class="amountalreadypaid"':'').'>' . price($totalpaye) . '</td><td>&nbsp;</td></tr>';
$totalpaye = $object->getSommePaiement();
$resteapayer = $object->total_ttc - $totalpaye;
$resteapayeraffiche = $resteapayer;
$cssforamountpaymentcomplete = 'amountpaymentcomplete';