mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
fix: updated scripts with new webform API
This commit is contained in:
@@ -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
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user