fix(shopping-cart-settings): filter payment gateway accounts

This commit is contained in:
Mangesh-Khairnar 2020-09-14 17:44:51 +05:30
parent 40d3add63c
commit 757fa5d010

View File

@ -7,6 +7,10 @@ frappe.ui.form.on("Shopping Cart Settings", {
frm.fields_dict.quotation_series.df.options = frm.doc.__onload.quotation_series;
frm.refresh_field("quotation_series");
}
frm.set_query('payment_gateway_account', function() {
return { 'filters': { 'payment_channel': "Email" } };
});
},
enabled: function(frm) {
if (frm.doc.enabled === 1) {