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:
parent
b058b06af7
commit
581de5f6a9
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user