fix: formatting for float.js

This commit is contained in:
stravo1@mac 2026-02-24 13:42:04 +05:30
parent 74b2de7c09
commit 3dd9f8f8ca

View file

@ -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() {