diff --git a/app/controllers/origami/rooms_controller.rb b/app/controllers/origami/rooms_controller.rb index ac2092b6..e49c82e7 100755 --- a/app/controllers/origami/rooms_controller.rb +++ b/app/controllers/origami/rooms_controller.rb @@ -58,7 +58,7 @@ class Origami::RoomsController < BaseOrigamiController @room.bookings.active.each do |booking| if booking.sale_id.nil? && booking.booking_status != 'moved' @order_items = Array.new - @assigned_order_items = Array.new + # @assigned_order_items = Array.new booking.booking_orders.each do |booking_order| order = Order.find(booking_order.order_id) @customer = order.customer @@ -79,10 +79,10 @@ class Origami::RoomsController < BaseOrigamiController item.set_menu_items = arr_instance_item_sets end @order_items.push(item) - assigned_order_items = AssignedOrderItem.find_by_item_code_and_instance_code_and_order_id(item.item_code,item.item_instance_code,item.order_id) - if !assigned_order_items.nil? - @assigned_order_items.push({item.order_items_id => assigned_order_items.assigned_order_item_id}) - end + # assigned_order_items = AssignedOrderItem.find_by_item_code_and_instance_code_and_order_id(item.item_code,item.item_instance_code,item.order_id) + # if !assigned_order_items.nil? + # @assigned_order_items.push({item.order_items_id => assigned_order_items.assigned_order_item_id}) + # end end end end diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb index 70c0e723..efec7698 100755 --- a/app/views/origami/rooms/show.html.erb +++ b/app/views/origami/rooms/show.html.erb @@ -277,39 +277,19 @@ sub_total = sub_total + (order_item.price * order_item.qty) # unless order_item.price == 0 %> - <% if !@assigned_order_items.nil? %> - <% @assigned_order_items.each do |assigned_order_item| %> - <% if assigned_order_item.include? (order_item.order_items_id) %> -