FIX : need to round with 2 decimals to avoid movements not correctly balanced
This commit is contained in:
parent
6e7fd15e1e
commit
d6a9da57e1
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user