fix: Party Type filter in payment entry list view (#21541)

This commit is contained in:
Deepesh Garg 2020-05-01 15:00:55 +05:30 committed by GitHub
parent 1a1b06cf59
commit 662838adb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,12 @@
frappe.listview_settings['Payment Entry'] = {
onload: function(listview) {
listview.page.fields_dict.party_type.get_query = function() {
return {
"filters": {
"name": ["in", Object.keys(frappe.boot.party_account_types)],
}
};
};
}
};