add order and reservation, quick service in lookups and add date and order by in order reservation

This commit is contained in:
phyusin
2018-04-25 15:07:43 +06:30
parent d0ad95c8d6
commit b41c85132d
10 changed files with 61 additions and 16 deletions

View File

@@ -7,6 +7,8 @@ class OrderReservation < ApplicationRecord
has_many :order_reservation_items
belongs_to :delivery
scope :latest_order, -> { order("order_reservation_id desc, requested_time asc") }
SEND_TO_KITCHEN = "send_to_kitchen"
READY_TO_DELIVERY = "ready_to_deliver"
DELIVERED = "delivered"