|
|
|
@ -27,6 +27,7 @@ function addPayment(type, icon, text) {
|
|
|
|
|
amount = ($("#owed-amount").text() * 1.0).toFixed(2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#payment-lines").append(''
|
|
|
|
|
+ '<div class="list-group-item">'
|
|
|
|
|
+ ' <div class="input-group">'
|
|
|
|
@ -59,6 +60,13 @@ function addPayment(type, icon, text) {
|
|
|
|
|
+ ' </div>'
|
|
|
|
|
+ '</div>');
|
|
|
|
|
$("#payment-lines .payment-entry").last().focus();
|
|
|
|
|
|
|
|
|
|
if (type == "cash") {
|
|
|
|
|
bsmoneypad("Currency Calculator", 0.0, "Save", "Cancel", null, function (answer) {
|
|
|
|
|
$("#payment-lines .payment-entry").last().val(answer);
|
|
|
|
|
recalculate();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function checkGiftCardBalance() {
|
|
|
|
|