Use server variables for client-size price calculation
This commit is contained in:
parent
6ad50d6a6e
commit
95d46f3633
@ -81,11 +81,11 @@ $(".list-group").on("click", ".rmpersonbtn", function () {
|
|||||||
function updateTotal() {
|
function updateTotal() {
|
||||||
totalcharge = $(".person-list-item[data-persontype=camper] input[data-name=firstname]").filter(function () {
|
totalcharge = $(".person-list-item[data-persontype=camper] input[data-name=firstname]").filter(function () {
|
||||||
return $(this).val() != '';
|
return $(this).val() != '';
|
||||||
}).length * 50.0;
|
}).length * prices.camp;
|
||||||
|
|
||||||
totalcharge = totalcharge - $(".person-list-item[data-persontype=adult] input[data-name=days]:checked").filter(function () {
|
totalcharge = totalcharge - $(".person-list-item[data-persontype=adult] input[data-name=days]:checked").filter(function () {
|
||||||
return $(this).val() != '';
|
return $(this).val() != '';
|
||||||
}).length * 10.0;
|
}).length * prices.adult_volunteer_daily_discount;
|
||||||
|
|
||||||
// Add charge for adult shirts
|
// Add charge for adult shirts
|
||||||
totalcharge = totalcharge + $(".person-list-item[data-persontype=adult]").filter(function () {
|
totalcharge = totalcharge + $(".person-list-item[data-persontype=adult]").filter(function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user