clickable checked

This commit is contained in:
phyusin
2018-06-01 14:04:46 +06:30
parent 5f95d2a769
commit a1ab3fac47
3 changed files with 12 additions and 2 deletions

View File

@@ -211,7 +211,7 @@
</div>
</div>
<div class="card">
<!-- <div class="card">
<div class="card-header">
<div><strong id="order-title">Promo Code</strong></div>
</div>
@@ -233,7 +233,7 @@
</div>
</div>
</div>
</div>
</div> -->
</div>
<!-- Column Three -->
<div class="col-lg-1 col-md-1 col-sm-1">
@@ -432,6 +432,9 @@ var cashier_type = "<%= @cashier_type %>";
// Pay Discount for Payment
$("#pay-discount").on('click', function(e){
e.preventDefault();
if($('#pay-discount').is(":visible")) {
$('#pay-discount').prop("disabled",true);
}
$("#loading_wrapper").show();
var sale_id = $('#sale-id').text();
var discount_items = JSON.stringify(get_discount_item_rows());

View File

@@ -308,6 +308,9 @@ var cashier_type = "<%= @cashier_type %>";
// Calculate Other Charges for Payment
$("#charge_other").on('click', function(e){
e.preventDefault();
if($('#charge_other').is(":visible")) {
$('#charge_other').prop("disabled",true);
}
var sale_id = $('#sale-id').text();
var sub_total = $('#order-sub-total').text();
var other_charges_items = JSON.stringify(get_other_item_rows());

View File

@@ -1054,6 +1054,10 @@ var pdf_view = '<%=@pdf_view%>';
$('.print_receipt').prop("disabled",true);
}
if($('#pay').is(":visible")) {
$('#pay').prop("disabled",true);
}
var sale_id = $('#sale_id').text();
var filename = $("#filename").val();
var printer_name = $("#printer_name").val();