fix: Check if list view standard filter exists in Payment Entry

This commit is contained in:
marination
2020-10-09 21:44:23 +05:30
parent d3074c32fd
commit 7e18df31bf

View File

@@ -1,6 +1,7 @@
frappe.listview_settings['Payment Entry'] = { frappe.listview_settings['Payment Entry'] = {
onload: function(listview) { onload: function(listview) {
if (listview.page.fields_dict.party_type) {
listview.page.fields_dict.party_type.get_query = function() { listview.page.fields_dict.party_type.get_query = function() {
return { return {
"filters": { "filters": {
@@ -9,4 +10,5 @@ frappe.listview_settings['Payment Entry'] = {
}; };
}; };
} }
}
}; };