fix: Do not add filters in report on accounting dimension creation if it already exists

This commit is contained in:
Deepesh Garg
2020-05-26 19:23:45 +05:30
parent 0b5e990751
commit 11ea0b1289
13 changed files with 33 additions and 74 deletions

View File

@@ -135,12 +135,5 @@ frappe.query_reports["Accounts Payable"] = {
}
}
erpnext.dimension_filters.forEach((dimension) => {
frappe.query_reports["Accounts Payable"].filters.splice(9, 0 ,{
"fieldname": dimension["fieldname"],
"label": __(dimension["label"]),
"fieldtype": "Link",
"options": dimension["document_type"]
});
});
erpnext.utils.add_dimensions('Accounts Payable', 9);