Automatically open money entry when selecting cash payment
This commit is contained in:
parent
c5a692c38a
commit
328cab7be3
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user