transactions for order reservation and api for tax profile

This commit is contained in:
phyusin
2018-05-28 18:08:30 +06:30
parent 0ff21a88cd
commit bf9bb1c58a
14 changed files with 685 additions and 45 deletions

View File

@@ -1,4 +1,6 @@
//= require origami.js
$(function() {
$("#discount").hide();
$(".expected_time").hide();
@@ -482,15 +484,6 @@ function callback_url(callback,ref_no,order_id,status,min_type,time,exptime,reas
});
}
function timeFormat(date){
var isPM = date.getHours() >= 12;
var isMidday = date.getHours() == 12;
var time = [(date.getHours()>10? date.getHours() : '0'+date.getHours()) - (isPM && !isMidday ? 12 : 0),
(date.getMinutes()>10? date.getMinutes() : '0'+date.getMinutes()) || '00'].join(':') +
(isPM ? ' PM' : ' AM');
return time;
}
function showNewOrder(order_reservation,shop_code){
if((order_reservation!=undefined) && (order_reservation!=null) && (order_reservation!="")){
var date = new Date(order_reservation.requested_time);