fix: Allow only bank accounts of the respective party in payment entry

This commit is contained in:
P-Froggy 2020-02-28 20:45:48 +01:00
parent 55d10f77f9
commit 393a626834

View File

@ -33,7 +33,9 @@ frappe.ui.form.on('Payment Entry', {
frm.set_query("party_bank_account", function() {
return {
filters: {
"is_company_account":0
"is_company_account":0,
party_type: frm.doc.party_type,
party: frm.doc.party
}
}
});