From ce7310255e1d4b1f812e6beccb6debf498bb6e0b Mon Sep 17 00:00:00 2001 From: Jamsheer Date: Tue, 22 May 2018 13:41:55 +0530 Subject: [PATCH] Salary Structure - filter for earnings --- erpnext/hr/doctype/salary_structure/salary_structure.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/salary_structure/salary_structure.js b/erpnext/hr/doctype/salary_structure/salary_structure.js index 9e62b6640e6..56f59929fcf 100755 --- a/erpnext/hr/doctype/salary_structure/salary_structure.js +++ b/erpnext/hr/doctype/salary_structure/salary_structure.js @@ -19,7 +19,9 @@ frappe.ui.form.on('Salary Structure', { frm.set_query("salary_component", "earnings", function() { return { filters: { - type: "earning" + type: "earning", + is_additional_component: 0, + is_group: 0 } } });