Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant

This commit is contained in:
Yan
2017-06-22 18:05:38 +06:30
18 changed files with 177 additions and 91 deletions

View File

@@ -23,9 +23,9 @@ if (@booking)
order_items = []
@booking.booking_orders.each do |bo|
order = Order.find(bo.order_id)
#if (order.status == "new")
if (order.status == "new")
order_items = order_items + order.order_items
#end
end
end
json.order_items order_items do |item|