mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
This should fix #22.
This commit is contained in:
parent
080357c2f3
commit
3d02473e03
@ -910,7 +910,7 @@ $(function() {
|
|||||||
amount.on("input", function () {
|
amount.on("input", function () {
|
||||||
var discount = (price * (membership_obj.membership_discount / 100).toFixed(2)).toFixed(2);
|
var discount = (price * (membership_obj.membership_discount / 100).toFixed(2)).toFixed(2);
|
||||||
var discount_price = (price - discount).toFixed(2);
|
var discount_price = (price - discount).toFixed(2);
|
||||||
//console.log("original " + price + " discount " + discount + " discounted " + discount_price);
|
////console.log("original " + price + " discount " + discount + " discounted " + discount_price);
|
||||||
if ( $("#transaction_type").val() !== "Stand Time" ) {
|
if ( $("#transaction_type").val() !== "Stand Time" ) {
|
||||||
$("#membership_discount").text("Member pays $" + discount_price).show();
|
$("#membership_discount").text("Member pays $" + discount_price).show();
|
||||||
$("#membership_discount_price").text(discount_price);
|
$("#membership_discount_price").text(discount_price);
|
||||||
@ -1372,7 +1372,7 @@ $(function() {
|
|||||||
transaction_type: $("#transaction_type").val(),
|
transaction_type: $("#transaction_type").val(),
|
||||||
original_price: original_price,
|
original_price: original_price,
|
||||||
amount: price,
|
amount: price,
|
||||||
redeemed_hours: rh || parseFloat($("#volunteer_hours").text()),
|
redeemed_hours: parseFloat($("#volunteer_hours").text()) || rh,
|
||||||
description: $("#description").val(),
|
description: $("#description").val(),
|
||||||
sold_to: sold_to,
|
sold_to: sold_to,
|
||||||
sold_by: $("[name='sold_by']").val(),
|
sold_by: $("[name='sold_by']").val(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user