shop_code
This commit is contained in:
@@ -10,6 +10,7 @@ class Origami::OrderReservationController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def update
|
||||
@shop = Shop.current_shop
|
||||
@id = params[:order_id]
|
||||
@status = params[:status]
|
||||
min_type = params[:min_type]
|
||||
@@ -86,6 +87,7 @@ class Origami::OrderReservationController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def send_status
|
||||
@shop = Shop.current_shop
|
||||
order_reservation = OrderReservation.find_by_transaction_ref(params[:ref_no])
|
||||
if !order_reservation.nil?
|
||||
if !ShiftSale.current_shift(@shop.shop_code).nil? || params[:status] == 'accepted' || (order_reservation.status == 'new' && params[:status] == 'rejected')
|
||||
@@ -105,6 +107,7 @@ class Origami::OrderReservationController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def check_receipt_bill
|
||||
@shop = Shop.current_shop
|
||||
receipt_bill = Lookup.where("shop_code='#{@shop.shop_code}'").collection_of("order_reservation")
|
||||
|
||||
status = 0
|
||||
|
||||
Reference in New Issue
Block a user