check shop code in order reservation
This commit is contained in:
@@ -404,7 +404,7 @@ function timeFormat(date){
|
||||
return time;
|
||||
}
|
||||
|
||||
function showNewOrder(order_reservation){
|
||||
function showNewOrder(order_reservation,shop_code){
|
||||
if((order_reservation!=undefined) && (order_reservation!=null) && (order_reservation!="")){
|
||||
var date = new Date(order_reservation.requested_time);
|
||||
var time = timeFormat(date);
|
||||
@@ -418,15 +418,15 @@ function showNewOrder(order_reservation){
|
||||
|
||||
$("#new_order").text(order_reservation.order_reservation_id);
|
||||
$("#new_order_date").text(requested_date);
|
||||
$("#doemal_new_order").on('show.bs.modal', function(e){
|
||||
$("#"+shop_code+"_doemal_new_order").on('show.bs.modal', function(e){
|
||||
$("#notify_new_order").modal('hide');
|
||||
$("#notify_order_send_to_kitchen").modal('hide');
|
||||
$("#notify_order_ready_to_delivery").modal('hide');
|
||||
}).on('shown.bs.modal', function(e){
|
||||
$("#doemal_new_order").focus();
|
||||
$("#"+shop_code+"_doemal_new_order").focus();
|
||||
}).on('hide.bs.modal', function (e) {
|
||||
audio.pause();
|
||||
$("#doemal_new_order").modal("hide");
|
||||
$("#"+shop_code+"_doemal_new_order").modal("hide");
|
||||
}).modal({show: true, keyboard: false, backdrop: false});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user