commit | 757fa5d010b61d9664c3f4f7bf1d651e40fecf60 | [log] [tgz] |
---|---|---|
author | Mangesh-Khairnar <mkhairnar10@gmail.com> | Mon Sep 14 17:44:51 2020 +0530 |
committer | Mangesh-Khairnar <mkhairnar10@gmail.com> | Mon Sep 14 17:44:51 2020 +0530 |
tree | 6a2b620c3364006d4b84a52b1b5cb895806b7df2 | |
parent | 40d3add63c4c30c3261e25d1b55ce8dc5858c563 [diff] |
fix(shopping-cart-settings): filter payment gateway accounts
diff --git a/erpnext/shopping_cart/doctype/shopping_cart_settings/shopping_cart_settings.js b/erpnext/shopping_cart/doctype/shopping_cart_settings/shopping_cart_settings.js index 21fa4c3..20c6342 100644 --- a/erpnext/shopping_cart/doctype/shopping_cart_settings/shopping_cart_settings.js +++ b/erpnext/shopping_cart/doctype/shopping_cart_settings/shopping_cart_settings.js
@@ -7,6 +7,10 @@ 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) {