mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
ticket fix
This commit is contained in:
@@ -2,8 +2,8 @@ frappe.ready(function() {
|
|||||||
// bind events here
|
// bind events here
|
||||||
var calculate = function() {
|
var calculate = function() {
|
||||||
var amount =
|
var amount =
|
||||||
(parseInt($('input[name="full_conference_tickets"]').val() || 0) * 10)
|
(parseInt($('input[name="full_conference_tickets"]').val() || 0) * 50)
|
||||||
+ (parseInt($('input[name="user_conference_tickets"]').val() || 0) * 50);
|
+ (parseInt($('input[name="user_conference_tickets"]').val() || 0) * 10);
|
||||||
$('input[name="amount"]').val(amount);
|
$('input[name="amount"]').val(amount);
|
||||||
$('input[name="amount"]').closest('.form-group').toggleClass('has-error', amount == 0);
|
$('input[name="amount"]').closest('.form-group').toggleClass('has-error', amount == 0);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user