fix: Condition

This commit is contained in:
Deepesh Garg 2020-06-10 14:47:45 +05:30
parent db5888e2f9
commit 737781c0da

View file

@ -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;