fix(Number Card): remove restriction on Currency based aggregation
This commit is contained in:
parent
d2586bf840
commit
3fbbe23582
1 changed files with 0 additions and 5 deletions
|
|
@ -124,11 +124,6 @@ frappe.ui.form.on("Number Card", {
|
|||
frappe.model.with_doctype(doctype, () => {
|
||||
frappe.get_meta(doctype).fields.map((df) => {
|
||||
if (frappe.model.numeric_fieldtypes.includes(df.fieldtype)) {
|
||||
if (df.fieldtype == "Currency") {
|
||||
if (!df.options || df.options !== "Company:company:default_currency") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
aggregate_based_on_fields.push({ label: df.label, value: df.fieldname });
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue