kbzpay
This commit is contained in:
@@ -540,6 +540,8 @@
|
||||
|
||||
<button type="button" id="pay" data-order="<%= existing_order %>" class="btn btn-block bg-blue waves-effect">Pay</button>
|
||||
|
||||
<!-- <button type="button" id="kbz_query" data-order="<%= existing_order %>" class="btn btn-block bg-blue waves-effect">KBZ Query</button> -->
|
||||
|
||||
<!--<% if current_login_employee.role != "waiter" %>
|
||||
<button type="button" class="btn action-btn bg-blue waves-effect" data-toggle="modal" data-target="#waste_spoileModal" > Waste & Spoile</button>
|
||||
<% end %>-->
|
||||
@@ -1072,6 +1074,24 @@
|
||||
}
|
||||
});
|
||||
|
||||
// $('#kbz_query').on('click', function(){
|
||||
// var sale_id = $('#sale_id').val();
|
||||
// var dining_id = "<%= @dining.id %>";
|
||||
// // window.location.href = '/origami/payment/kbz_query/'+ sale_id;
|
||||
// $.ajax({
|
||||
// type: 'POST',
|
||||
// data: 'table_id='+dining_id,
|
||||
// url: '/origami/payment/kbz_query/'+sale_id,
|
||||
// success: function(result){
|
||||
// if (result.status == true) {
|
||||
// window.location.href = '/origami';
|
||||
// }else{
|
||||
// location.reload()
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
|
||||
// Bill Request
|
||||
$('#request_bills').click(function () {
|
||||
var order_id = $('#save_order_id').attr('data-order');
|
||||
|
||||
Reference in New Issue
Block a user