diff --git a/app/assets/javascripts/order_reservation.js b/app/assets/javascripts/order_reservation.js
index fb210f6b..1a1e6e64 100644
--- a/app/assets/javascripts/order_reservation.js
+++ b/app/assets/javascripts/order_reservation.js
@@ -308,13 +308,26 @@ 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 = '
'
+ +''+items[i].item_name
+ +' '
+ +' '+items[i].options+' '+
+ ''+items[i].qty+ ' X'+items[i].unit_price+''
+ +' | '
+ +''+ total +' | '
+ +'
';
+ }else{
row = ''
- +''+items[i].item_name
- +' '+items[i].qty+ ' X'+items[i].unit_price+''
- +' | '
- +''+ total +' | '
- +'
';
- $('.summary-items').append(row);
+ +''+items[i].item_name
+ +' '+
+ ''+items[i].qty+ ' X'+items[i].unit_price+''
+ +' | '
+ +''+ total +' | '
+ +'';
+ }
+
+ $('.summary-items').append(row);
}
if(data.discount_amount > 0){
@@ -565,5 +578,5 @@ function getOrderMonth(month){
function getOrderDay(day){
var DAYS = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];
- return DAYS[day];
+ return DAYS[day - 1];
}
\ No newline at end of file