change saleitem query and js for order reservation
This commit is contained in:
@@ -157,3 +157,15 @@ $(document).ready(function() {
|
||||
}
|
||||
//end Notificaiotn message
|
||||
});
|
||||
|
||||
/* start order reservation function */
|
||||
function audioPlayBackground(shop_code,audio){
|
||||
// console.log(shop_code);
|
||||
//audio play
|
||||
var audio = new Audio('/'+audio); // define your audio
|
||||
// setTimeout(function(){
|
||||
// audio.loop = true;
|
||||
audio.play();
|
||||
// },10000);
|
||||
}
|
||||
/* end order reservation function */
|
||||
@@ -1,3 +1,5 @@
|
||||
//= require custom.js
|
||||
|
||||
$(function() {
|
||||
$("#discount").hide();
|
||||
$(".expected_time").hide();
|
||||
@@ -307,8 +309,8 @@ function show_order_detail(url,sr_no){
|
||||
item_price = items[i].unit_price;
|
||||
}
|
||||
var total = items[i].qty * item_price;
|
||||
if(items[i].options!='[]'){
|
||||
row = '<tr>'
|
||||
if(items[i].options!='[]' && items[i].options!="" && items[i].options!=null){
|
||||
row = '<tr>'
|
||||
+'<td width ="70%" class="body-td align-left">'+items[i].item_name
|
||||
+' <br>'
|
||||
+' <i><span class="font-12">'+items[i].options+'</span></i><br>'+
|
||||
@@ -579,16 +581,4 @@ function timeFormat(date){
|
||||
(isPM ? ' PM' : ' AM');
|
||||
return time;
|
||||
}
|
||||
/* end order reservation function */
|
||||
|
||||
/* start order reservation function */
|
||||
function audioPlayBackground(shop_code,audio){
|
||||
// console.log(shop_code);
|
||||
//audio play
|
||||
var audio = new Audio('/'+audio); // define your audio
|
||||
// setTimeout(function(){
|
||||
// audio.loop = true;
|
||||
audio.play();
|
||||
// },10000);
|
||||
}
|
||||
/* end order reservation function */
|
||||
Reference in New Issue
Block a user