Merge pull request #9652 from atm-gauthier/7.0_fix_round_debitcredit

FIX : need to round with 2 decimals to avoid movements not correctly balanced
This commit is contained in:
Laurent Destailleur 2019-03-16 14:27:03 +01:00 committed by GitHub
commit ae35c982af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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, 'MT');
$total_credit = price2num($total_credit, 'MT');
if ($total_debit != $total_credit)
{