check order reservataion status
This commit is contained in:
@@ -15,12 +15,12 @@ $(function() {
|
||||
customTableClick();
|
||||
|
||||
$(".nav-item").on("click", function(){
|
||||
type = $(this).attr("data-type");
|
||||
refreshDetailData();
|
||||
var type = $(this).attr("data-type");
|
||||
$('#accepted').hide();
|
||||
$('#cancel').hide();
|
||||
$(".tbl_customer").hide();
|
||||
$(".order_close_cashier").hide();
|
||||
refreshDetailData();
|
||||
if (type == "pending") {
|
||||
$(".first-1").click();
|
||||
$('#accepted').text("ACCEPT");
|
||||
@@ -240,6 +240,11 @@ function customTableClick(){
|
||||
}
|
||||
|
||||
function refreshDetailData(){
|
||||
$("#ref_no").text("");
|
||||
$("#callback_url").text("");
|
||||
$("#order_id").text("");
|
||||
$("#status").text("");
|
||||
|
||||
$('#requested_date_time').text("");
|
||||
$("#sr_number").text("");
|
||||
$("#delivery_info").text("");
|
||||
@@ -260,7 +265,7 @@ function refreshDetailData(){
|
||||
|
||||
//show order list
|
||||
function show_order_detail(url,sr_no){
|
||||
$('.summary-items').html("");
|
||||
// $('.summary-items').html("");
|
||||
//Start Ajax
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
@@ -470,8 +475,10 @@ function callback_url(callback,ref_no,order_id,status,min_type,time,exptime,reas
|
||||
closeOnConfirm: false,
|
||||
closeOnCancel: false,
|
||||
allowOutsideClick: false
|
||||
}, function () {
|
||||
window.location.href = '/origami/order_reservation';
|
||||
}, function (isConfirm) {
|
||||
if(isConfirm){
|
||||
window.location.href = '/origami/order_reservation';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user