From 6bead00260f3675ca667deb2beb994b89a8eeb8f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Mar 2019 10:27:36 +0100 Subject: [PATCH] Better text --- htdocs/compta/facture/card.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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 ' ';