update check server mode
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user