Update card.php

This commit is contained in:
Frédéric FRANCE 2017-11-08 11:24:33 +01:00 committed by GitHub
parent 6eb2204c2b
commit fe3ce78ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -631,7 +631,7 @@ if ($action == 'create') {
print "</tr>\n";
}
if ($total_debit != $total_credit)
if (price2num($total_debit) != price2num($total_credit))
{
setEventMessages(null, array($langs->trans('MvtNotCorrectlyBalanced', $total_credit, $total_debit)), 'warnings');
}