fix: linting
diff --git a/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.js b/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.js
index 6c254fc..3e880d3 100644
--- a/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.js
+++ b/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.js
@@ -5,13 +5,13 @@
onload: function(frm) {
frappe.db.get_list('Accounting Dimension',
{fields: ['name']}).then((res) => {
- let options = ['Cost Center', 'Project'];
+ let options = ['Cost Center', 'Project'];
- res.forEach((dimension) => {
- options.push(dimension.name);
- });
+ res.forEach((dimension) => {
+ options.push(dimension.name);
+ });
- frm.set_df_property('accounting_dimension', 'options', options);
+ frm.set_df_property('accounting_dimension', 'options', options);
});
},
diff --git a/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.py b/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.py
index ccfafd9..0dcf116 100644
--- a/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.py
+++ b/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.py
@@ -44,7 +44,6 @@
""", as_dict=1)
dimension_filter_map = {}
- account_filter_map = {}
for f in filters:
if f.accounting_dimension in ('Cost Center', 'Project'):
diff --git a/erpnext/payroll/doctype/payroll_entry/payroll_entry.js b/erpnext/payroll/doctype/payroll_entry/payroll_entry.js
index bc34d6c..d32fdbc 100644
--- a/erpnext/payroll/doctype/payroll_entry/payroll_entry.js
+++ b/erpnext/payroll/doctype/payroll_entry/payroll_entry.js
@@ -112,7 +112,7 @@
"company": frm.doc.company
}
};
- })
+ });
},
payroll_frequency: function (frm) {
diff --git a/erpnext/public/js/queries.js b/erpnext/public/js/queries.js
index 7b7a9df..98f1b50 100644
--- a/erpnext/public/js/queries.js
+++ b/erpnext/public/js/queries.js
@@ -134,7 +134,7 @@
'account': account,
'company': company
}
- }
+ };
}
});
diff --git a/erpnext/public/js/utils/dimension_tree_filter.js b/erpnext/public/js/utils/dimension_tree_filter.js
index 34b5635..7a42fb5 100644
--- a/erpnext/public/js/utils/dimension_tree_filter.js
+++ b/erpnext/public/js/utils/dimension_tree_filter.js
@@ -1,5 +1,4 @@
frappe.provide('frappe.ui.form');
-
let default_dimensions = {};
let doctypes_with_dimensions = ["GL Entry", "Sales Invoice", "Purchase Invoice", "Payment Entry", "Asset",
@@ -34,7 +33,7 @@
parent_fields.push(df.fieldname);
} else if (df.fieldtype === 'Table') {
setup_child_filters(frm, df.options, df.fieldname, dimension['fieldname']);
- };
+ }
setup_account_filters(frm, dimension['fieldname'], parent_fields);
});
@@ -90,7 +89,7 @@
let row = frappe.get_doc(cdt, cdn);
frm.script_manager.copy_from_first_row(fieldname, row, [dimension['fieldname']]);
});
-}
+};
let setup_child_filters = function(frm, doctype, parentfield, dimension) {
let fields = [];
@@ -107,10 +106,10 @@
return erpnext.queries.get_filtered_dimensions(row, fields, dimension, doc.company);
});
});
-}
+};
let setup_account_filters = function(frm, dimension, fields) {
frm.set_query(dimension, function(doc) {
return erpnext.queries.get_filtered_dimensions(doc, fields, dimension, doc.company);
});
-}
\ No newline at end of file
+};
\ No newline at end of file