FIX : need to round with 2 decimals to avoid movements not correctly balanced

This commit is contained in:
gauthier 2018-10-01 14:11:19 +02:00
parent 6e7fd15e1e
commit d6a9da57e1

View File

@ -651,8 +651,8 @@ if ($action == 'create')
print "</tr>\n";
}
$total_debit = price2num($total_debit);
$total_credit = price2num($total_credit);
$total_debit = price2num($total_debit, 2);
$total_credit = price2num($total_credit, 2);
if ($total_debit != $total_credit)
{