feat: client code to handle razorpay fields

This commit is contained in:
Shivam Mishra 2020-03-30 18:15:22 +05:30
parent 1d6395c5cf
commit 1281634306

View File

@ -2,7 +2,9 @@
// For license information, please see license.txt
frappe.ui.form.on('Membership Type', {
refresh: function() {
refresh: function(frm) {
frappe.db.get_single_value("Membership Settings", "enable_razorpay").then(val => {
if (val) frm.set_df_property('razorpay_plan_id', 'hidden', 'false');
})
}
});