fix: Condition
This commit is contained in:
parent
db5888e2f9
commit
737781c0da
1 changed files with 0 additions and 1 deletions
|
|
@ -70,7 +70,6 @@ frappe.form.formatters = {
|
|||
|
||||
if ( decimals.length < 3 || decimals.length < precision ) {
|
||||
const fraction = frappe.model.get_value(":Currency", currency, "fraction_units") || 100; // if not set, minimum 2.
|
||||
precision = cstr(fraction).length - 1;
|
||||
|
||||
if (decimals.length < cstr(fraction).length) {
|
||||
precision = cstr(fraction).length - 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue