From 41d897d5c2a3100486d57598bd755b1f36f10523 Mon Sep 17 00:00:00 2001 From: San Wai Lwin Date: Tue, 10 Apr 2018 18:18:08 +0630 Subject: [PATCH 1/3] Edit Move Table Pdf --- app/controllers/origami/movetable_controller.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/origami/movetable_controller.rb b/app/controllers/origami/movetable_controller.rb index 3844293e..a92956e6 100755 --- a/app/controllers/origami/movetable_controller.rb +++ b/app/controllers/origami/movetable_controller.rb @@ -71,9 +71,11 @@ class Origami::MovetableController < BaseOrigamiController booking.booking_orders.each do |booking_order| order = Order.find(booking_order.order_id) - order.order_items.each do |order_item| - order_items.push(order_item) - end + if order.status == 'new' + order.order_items.each do |order_item| + order_items.push(order_item) + end + end end end end From f159673c6045914de1287e0e42d1d11b15804bea Mon Sep 17 00:00:00 2001 From: San Wai Lwin Date: Wed, 11 Apr 2018 14:47:50 +0630 Subject: [PATCH 2/3] Remove Discount button in cashier of waiter role --- app/views/origami/home/show.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index 2af02ca8..7c736299 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -488,7 +488,9 @@