2
0
mirror of https://github.com/frappe/books.git synced 2025-01-25 16:18:33 +00:00

refactor: don't pass display, it's set on init

This commit is contained in:
18alantom 2021-12-28 11:37:59 +05:30
parent b058b06af7
commit 581de5f6a9

View File

@ -131,8 +131,7 @@ module.exports = {
} }
if (value.round) { if (value.round) {
const displayPrecision = this.getDisplayPrecision(); return currencyFormatter.format(value.round());
return currencyFormatter.format(value.round(displayPrecision));
} }
const formattedCurrency = currencyFormatter(value); const formattedCurrency = currencyFormatter(value);