2
0
mirror of https://github.com/frappe/books.git synced 2025-01-11 10:38:14 +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) {
const displayPrecision = this.getDisplayPrecision();
return currencyFormatter.format(value.round(displayPrecision));
return currencyFormatter.format(value.round());
}
const formattedCurrency = currencyFormatter(value);