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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user