diff --git a/foundation/erpnext_foundation/web_form/buy_tickets_inr/buy_tickets_inr.js b/foundation/erpnext_foundation/web_form/buy_tickets_inr/buy_tickets_inr.js index 5c0d8fce..a00a71d3 100644 --- a/foundation/erpnext_foundation/web_form/buy_tickets_inr/buy_tickets_inr.js +++ b/foundation/erpnext_foundation/web_form/buy_tickets_inr/buy_tickets_inr.js @@ -1,8 +1,8 @@ frappe.ready(function() { // bind events here frappe._calculate = function() { - frappe.web_form.field_group.set_value('amount', - parseInt(frappe.web_form.field_group.get_value('full_conference_tickets') || 0) * 4000 + frappe.web_form.set_value('amount', + parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 4000 ) }; diff --git a/foundation/erpnext_foundation/web_form/buy_tickets_paypal/buy_tickets_paypal.js b/foundation/erpnext_foundation/web_form/buy_tickets_paypal/buy_tickets_paypal.js index 509dce75..d3ac315b 100644 --- a/foundation/erpnext_foundation/web_form/buy_tickets_paypal/buy_tickets_paypal.js +++ b/foundation/erpnext_foundation/web_form/buy_tickets_paypal/buy_tickets_paypal.js @@ -1,8 +1,8 @@ frappe.ready(function() { // bind events here frappe._calculate = function() { - frappe.web_form.field_group.set_value('amount', - parseInt(frappe.web_form.field_group.get_value('full_conference_tickets') || 0) * 60 + frappe.web_form.set_value('amount', + parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 60 ) };