Skip to content

Commit

Permalink
Fix the remainder to pay amount (#6486)
Browse files Browse the repository at this point in the history
The commit fix the remainder to pay amount (`$restapayer` value) in a
supplier invoice card.
  • Loading branch information
tarrsalah committed Mar 5, 2017
1 parent f67c967 commit 840408c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/fourn/facture/card.php
Expand Up @@ -2411,6 +2411,8 @@
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';

Expand Down

0 comments on commit 840408c

Please sign in to comment.