change dailysale report and check tax in add to existing

This commit is contained in:
phyusin
2018-05-17 11:21:38 +06:30
parent dc23df673f
commit 62dec82bd8
6 changed files with 23 additions and 31 deletions

View File

@@ -199,3 +199,12 @@ function export_to(path)
var form_params = $("#frm_report").serialize();
window.location = path+"?"+ form_params;
}
function audioPlayBackground(shop_code){
//audio play
var audio = new Audio('/'+shop_code+'-beep.mp3'); // define your audio
// setTimeout(function(){
// audio.loop = true;
audio.play();
// },10000);
}

View File

@@ -483,12 +483,7 @@ function showNewOrder(order_reservation,shop_code){
var date = new Date(order_reservation.requested_time);
var time = timeFormat(date);
var requested_date = date.getFullYear() + '-' + (date.getMonth() >= 10? date.getMonth() : '0' + (date.getMonth() + 1)) +'-'+ (date.getDate() >= 10? date.getDate() : '0' + date.getDate()) +' '+time;
//audio play
var audio = new Audio('/'+shop_code+'-beep.mp3'); // define your audio
// setTimeout(function(){
// audio.loop = true;
audio.play();
// },10000);
audioPlayBackground(shop_code);
// $("#new_order").text(order_reservation.order_reservation_id);
// $("#new_order_date").text(requested_date);