multiple zone with cashier terminal call waiter noti

This commit is contained in:
phyusin
2018-10-11 10:22:35 +06:30
parent d913c074e0
commit 8897f1d052
5 changed files with 27 additions and 11 deletions

View File

@@ -11,8 +11,8 @@ class Origami::HomeController < BaseOrigamiController
@customers = Customer.pluck("customer_id, name")
@shop = shop_detail
@occupied_table = DiningFacility.where("status='occupied'").count;
# @shift = ShiftSale.current_open_shift(current_user.id)
@occupied_table = DiningFacility.where("status='occupied'").count
@shift = ShiftSale.current_open_shift(current_user.id)
end
# origami table detail
@@ -24,6 +24,7 @@ class Origami::HomeController < BaseOrigamiController
@complete = Sale.completed_sale("cashier")
@orders = Order.includes("sale_orders").where("DATE_FORMAT(date,'%Y-%m-%d') = ? and status != 'billed' and source != 'quick_service'",DateTime.now.strftime('%Y-%m-%d')).order('date desc')
@customers = Customer.pluck("customer_id, name")
@shift = ShiftSale.current_open_shift(current_user.id)
@status_order = ""
@status_sale = ""