some changes for order reservation

This commit is contained in:
phyusin
2018-09-06 11:45:24 +06:30
parent 6af0c40456
commit 1f03a19d5b
12 changed files with 216 additions and 67 deletions

View File

@@ -96,4 +96,9 @@ class Origami::OrderReservationController < BaseOrigamiController
render :json => response
end
def get_order_info
order_reservation = OrderReservation.where("status = 'new' OR status='accepted' OR status='send_to_kitchen' OR status = 'ready_to_delivery'").count()
render :json => order_reservation
end
end