fix: updated scripts with new webform API

This commit is contained in:
Shivam Mishra
2019-08-01 16:15:34 +05:30
parent 3af0005857
commit e1ee24b44f
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
frappe.ready(function() { frappe.ready(function() {
// bind events here // bind events here
frappe._calculate = function() { frappe._calculate = function() {
frappe.web_form.field_group.set_value('amount', frappe.web_form.set_value('amount',
parseInt(frappe.web_form.field_group.get_value('full_conference_tickets') || 0) * 4000 parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 4000
) )
}; };

View File

@@ -1,8 +1,8 @@
frappe.ready(function() { frappe.ready(function() {
// bind events here // bind events here
frappe._calculate = function() { frappe._calculate = function() {
frappe.web_form.field_group.set_value('amount', frappe.web_form.set_value('amount',
parseInt(frappe.web_form.field_group.get_value('full_conference_tickets') || 0) * 60 parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 60
) )
}; };