update order

This commit is contained in:
Aung Myo
2018-05-31 17:42:55 +06:30
parent 9bcae0807e
commit 0d0e16e4b4

View File

@@ -389,6 +389,7 @@ class Order < ApplicationRecord
.where("dining_facilities.type=? and orders.order_type=? and dining_facilities.is_active=?",DiningFacility::ROOM_TYPE,"dine_in",true)
.group("orders.order_id")
end
#Origami: Cashier : to view orders
def self.get_orders
from = Time.now.beginning_of_day.utc