fix: Commified function to get dimensions
diff --git a/erpnext/public/js/financial_statements.js b/erpnext/public/js/financial_statements.js
index 77e67c4..2e4b8f2 100644
--- a/erpnext/public/js/financial_statements.js
+++ b/erpnext/public/js/financial_statements.js
@@ -150,7 +150,7 @@
}
]
- let dimension_filters = get_dimension_filters()
+ let dimension_filters = erpnext.get_dimension_filters()
dimension_filters.then((dimensions) => {
dimensions.forEach((dimension) => {
@@ -166,10 +166,4 @@
return filters;
}
-async function get_dimension_filters() {
- let dimensions = await frappe.db.get_list('Accounting Dimension', {
- fields: ['label', 'fieldname', 'document_type'],
- });
- return dimensions;
-}