set query in payment account (#13446)

This commit is contained in:
Shreya Shah 2018-04-02 10:13:48 +05:30 committed by Nabin Hait
parent 0289ad285f
commit d17c24f969

View File

@ -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) {