瀏覽代碼

Clean var

Laurent Destailleur 7 年之前
父節點
當前提交
28207ad4cb
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      htdocs/accountancy/bookkeeping/card.php

+ 4 - 1
htdocs/accountancy/bookkeeping/card.php

@@ -648,7 +648,10 @@ if ($action == 'create')
 					print "</tr>\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');
 				}