shop_code
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class Origami::PendingOrderController < BaseOrigamiController
|
||||
def index
|
||||
@shop = Shop.current_shop
|
||||
# @dining= DiningFacility.where("status = 'occupied'")
|
||||
# @order = Order.where("DATE_FORMAT(date,'%Y-%m-%d') = ? and status = 'billed' and source = 'quick_service'",DateTime.now.strftime('%Y-%m-%d'))
|
||||
@cashier_type = params[:type]
|
||||
@@ -13,6 +14,7 @@ class Origami::PendingOrderController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def show
|
||||
@shop = Shop.current_shop
|
||||
id = params[:sale_id]
|
||||
if id.start_with?("SAL")
|
||||
@sale = Sale.find(id)
|
||||
@@ -43,6 +45,7 @@ class Origami::PendingOrderController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def completed_sale
|
||||
@shop = Shop.current_shop
|
||||
@cashier_type = params[:type]
|
||||
@sales = Sale.pending_sale(@cashier_type)
|
||||
@orders = Sale.pending_order(@cashier_type)
|
||||
@@ -78,6 +81,7 @@ class Origami::PendingOrderController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def credit_sale
|
||||
@shop = Shop.current_shop
|
||||
@cashier_type = params[:type]
|
||||
@sales = Sale.pending_sale(@cashier_type)
|
||||
@orders = Sale.pending_order(@cashier_type)
|
||||
|
||||
Reference in New Issue
Block a user