From 999a3f1305144f8184d31384d317870cf5b53c58 Mon Sep 17 00:00:00 2001 From: pateljannat Date: Tue, 28 Sep 2021 10:32:33 +0530 Subject: [PATCH] Revert 'fix: salary component account filter' --- erpnext/hr/doctype/salary_component/salary_component.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/erpnext/hr/doctype/salary_component/salary_component.js b/erpnext/hr/doctype/salary_component/salary_component.js index f2a0e2e715d..247e4d422c0 100644 --- a/erpnext/hr/doctype/salary_component/salary_component.js +++ b/erpnext/hr/doctype/salary_component/salary_component.js @@ -6,16 +6,10 @@ frappe.ui.form.on('Salary Component', { frm.set_query("default_account", "accounts", function(doc, cdt, cdn) { var d = locals[cdt][cdn]; - var root_type = "Liability"; - if (frm.doc.type == "Deduction") { - root_type = "Expense"; - } - return { filters: { "is_group": 0, - "company": d.company, - "root_type": root_type + "company": d.company } }; });