update cache menu
This commit is contained in:
@@ -3,6 +3,8 @@ class Origami::DashboardController < BaseOrigamiController
|
||||
def index
|
||||
@shop = Shop.first
|
||||
|
||||
|
||||
|
||||
today = DateTime.now.strftime('%Y-%m-%d')
|
||||
# @orders = Sale::where("payment_status='new' and sale_status='bill' and DATE_FORMAT(receipt_date,'%Y-%m-%d') = '#{today}'").count()
|
||||
# @sales = Sale::where("payment_status='paid' and sale_status='completed' and DATE_FORMAT(receipt_date,'%Y-%m-%d') = '#{today}'").count()
|
||||
@@ -81,4 +83,8 @@ class Origami::DashboardController < BaseOrigamiController
|
||||
end
|
||||
end
|
||||
|
||||
def get_all_menu
|
||||
@menus = Menu.all
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user