diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 96f4a9c1979..c0329b21668 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -4362,10 +4362,9 @@ elseif ($id > 0 || ! empty($ref))
// Remainder to pay
print '
| ';
- if ($resteapayeraffiche >= 0)
- print $langs->trans('RemainderToPay');
- else
- print $langs->trans('ExcessReceived');
+ print $langs->trans('RemainderToPay');
+ if ($resteapayeraffiche < 0)
+ print ' ('.$langs->trans('ExcessReceived').')';
print ' : | ';
print '' . price($resteapayeraffiche) . ' | ';
print ' |
';
@@ -4384,10 +4383,9 @@ elseif ($id > 0 || ! empty($ref))
// Remainder to pay back
print '| ';
- if ($resteapayeraffiche <= 0)
- print $langs->trans('RemainderToPayBack');
- else
- print $langs->trans('ExcessPaid');
+ print $langs->trans('RemainderToPayBack');
+ if ($resteapayeraffiche > 0)
+ print ' ('.$langs->trans('ExcessPaid').')';
print ' : | ';
print '' . price($sign * $resteapayeraffiche) . ' | ';
print ' |
';