diff --git a/frappe/public/js/frappe/form/controls/float.js b/frappe/public/js/frappe/form/controls/float.js index 40483c6643..df9b25d904 100644 --- a/frappe/public/js/frappe/form/controls/float.js +++ b/frappe/public/js/frappe/form/controls/float.js @@ -17,10 +17,14 @@ frappe.ui.form.ControlFloat = class ControlFloat extends frappe.ui.form.ControlI } get_number_format() { - if (this.df.fieldtype === "Rating" || (this.df.fieldtype === "Float" && !this.df.options?.trim())) return; - - const currency = frappe.meta.get_field_currency(this.df, this.get_doc()); - return get_number_format(currency); + if ( + this.df.fieldtype === "Rating" || + (this.df.fieldtype === "Float" && !this.df.options?.trim()) + ) + return; + + const currency = frappe.meta.get_field_currency(this.df, this.get_doc()); + return get_number_format(currency); } get_precision() {