update check server mode

This commit is contained in:
Aung Myo
2018-01-12 15:46:40 +06:30
parent 6ff3b04454
commit 0b517807f9
3 changed files with 15 additions and 15 deletions

View File

@@ -396,7 +396,7 @@
<button type="button" id="commissions" class="btn btn-block bg-blue waves-effect">Commissions</button>
<button type="button" id="in_duties" class="btn btn-block bg-blue waves-effect">In Duties</button>
<!-- <button type="button" id="first_bill" class="btn btn-block bg-blue waves-effect">First Bill</button> -->
<button type="button" id="first_bill" class="btn btn-block bg-blue waves-effect">First Bill</button>
<button type="button" id="pay" class="btn btn-block bg-blue waves-effect">Pay</button>
<button type="button" id="void" class="btn btn-block bg-blue waves-effect" active="<%= can? :overall_void, :void %>"> Void</button>
@@ -571,18 +571,18 @@
});
});
// Print for first bill
// $("#first_bill").on('click', function () {
// var sale_id = $('#sale_id').val();
// var ajax_url = "/origami/sale/" + sale_id + "/first_bill";
$("#first_bill").on('click', function () {
var sale_id = $('#sale_id').val();
var ajax_url = "/origami/sale/" + sale_id + "/first_bill";
// $.ajax({
// type: "GET",
// url: ajax_url,
// success: function (result) {
// location.reload();
// }
// });
// });
$.ajax({
type: "GET",
url: ajax_url,
success: function (result) {
location.reload();
}
});
});
// $('#pay').on('click', function () {
// var sale_id = $('#sale_id').val();

View File

@@ -311,8 +311,7 @@
}
payment_type = checkReceiptNoInFirstBillData(receipt_no,"payment")
// console.log(jQuery.inArray("Credit", payment_type))
// console.log(payment_type)
if(parseInt(jQuery.inArray("Credit", payment_type)) == -1){
$("#credit_payment").hide();
} else{