From 28207ad4cb34ee9c381a1a471d07104e77d1ef35 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 12 Jan 2018 14:57:02 +0100 Subject: [PATCH] Clean var --- htdocs/accountancy/bookkeeping/card.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/accountancy/bookkeeping/card.php b/htdocs/accountancy/bookkeeping/card.php index 0767023eacf..593c71188e8 100644 --- a/htdocs/accountancy/bookkeeping/card.php +++ b/htdocs/accountancy/bookkeeping/card.php @@ -648,7 +648,10 @@ if ($action == 'create') print "\n"; } - if (price2num($total_debit) != price2num($total_credit)) + $total_debit = price2num($total_debit); + $total_credit = price2num($total_credit); + + if ($total_debit != $total_credit) { setEventMessages(null, array($langs->trans('MvtNotCorrectlyBalanced', $total_credit, $total_debit)), 'warnings'); }