Merge pull request #37451 from stravo1/fix-control_rating-test-ci-fail

This commit is contained in:
Suraj Shetty 2026-02-24 16:25:05 +05:30 committed by GitHub
commit fc2cdabc95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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