shop_code

This commit is contained in:
Myat Zin Wai Maw
2019-12-05 14:56:47 +06:30
parent ccbd3c6966
commit b0f6368248
58 changed files with 95 additions and 26 deletions

View File

@@ -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)