From d17c24f96951e97954159e65caddbdd8b86eeef3 Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Mon, 2 Apr 2018 10:13:48 +0530 Subject: [PATCH] set query in payment account (#13446) --- .../hr/doctype/salary_structure/salary_structure.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/erpnext/hr/doctype/salary_structure/salary_structure.js b/erpnext/hr/doctype/salary_structure/salary_structure.js index 68c5f25fd2..8e6b69bd9e 100755 --- a/erpnext/hr/doctype/salary_structure/salary_structure.js +++ b/erpnext/hr/doctype/salary_structure/salary_structure.js @@ -39,6 +39,16 @@ frappe.ui.form.on('Salary Structure', { } } }); + frm.set_query("payment_account", function () { + var account_types = ["Bank", "Cash"]; + return { + filters: { + "account_type": ["in", account_types], + "is_group": 0, + "company": frm.doc.company + } + }; + }); }, refresh: function(frm) {