move multiple order and sales

This commit is contained in:
Nweni
2017-06-22 05:51:42 +06:30
parent 168c571a23
commit 0ff10f2f32
5 changed files with 53 additions and 36 deletions

View File

@@ -19,8 +19,9 @@ class Origami::HomeController < BaseOrigamiController
@sale_array = Array.new
@dining.bookings.each do |booking|
if booking.sale_id.nil?
@order_items = Array.new
booking.booking_orders.each do |booking_order|
@order_items = Array.new
order = Order.find(booking_order.order_id)
@obj_order = order
@date = order.created_at