Merge pull request #37451 from stravo1/fix-control_rating-test-ci-fail
This commit is contained in:
commit
fc2cdabc95
1 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,11 @@ frappe.ui.form.ControlFloat = class ControlFloat extends frappe.ui.form.ControlI
|
|||
}
|
||||
|
||||
get_number_format() {
|
||||
if (this.df.fieldtype === "Float" && !this.df.options?.trim()) return;
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue