2
0
forked from Wavyzz/dolibarr

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

View File

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