fix(Rounded Total): Use Banker's Rounding in JS round_based_on_smallest_currency_fraction (#6840)

This commit is contained in:
Saif 2019-01-29 12:08:09 +05:00 committed by Nabin Hait
parent 434b518ebf
commit a5db88843b

View file

@ -237,7 +237,7 @@ function round_based_on_smallest_currency_fraction(value, currency, precision) {
value -= remainder_val;
}
} else {
value = Math.round(value);
value = _round(value);
}
return value;
}