fix: formatting for float.js
This commit is contained in:
parent
74b2de7c09
commit
3dd9f8f8ca
1 changed files with 8 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue