queue acess on cashier and shiftclose to logout
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
class Crm::HomeController < BaseCrmController
|
class Crm::HomeController < BaseCrmController
|
||||||
def index
|
def index
|
||||||
|
|
||||||
# @booking = Booking.all
|
@booking = Booking.all
|
||||||
# @customer = Customer.all
|
@customer = Customer.all
|
||||||
# from = Time.now.beginning_of_day.utc
|
from = Time.now.beginning_of_day.utc
|
||||||
# to = Time.now.end_of_day.utc
|
to = Time.now.end_of_day.utc
|
||||||
# @queue = DiningQueue.where('created_at BETWEEN ? AND ?', from, to).order('queue_no ASC')
|
@queue = DiningQueue.where('created_at BETWEEN ? AND ?', from, to).order('queue_no ASC')
|
||||||
redirect_to crm_customers_path
|
# redirect_to crm_customers_path
|
||||||
# .where("dining_facilities.is_active=? and orders.date between ? and ?",true,from,to)
|
# .where("dining_facilities.is_active=? and orders.date between ? and ?",true,from,to)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -39,8 +39,12 @@ class Origami::ShiftsController < BaseOrigamiController
|
|||||||
|
|
||||||
printer.print_close_cashier(print_settings,@shift,shop_details)
|
printer.print_close_cashier(print_settings,@shift,shop_details)
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
session[:session_token] = nil
|
||||||
|
redirect_to root_path
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
|
|||||||
@@ -101,6 +101,8 @@ class Ability
|
|||||||
can :create, :payment
|
can :create, :payment
|
||||||
can :reprint, :payment
|
can :reprint, :payment
|
||||||
|
|
||||||
|
can :manage, DiningQueue
|
||||||
|
|
||||||
elsif user.role == "accountant"
|
elsif user.role == "accountant"
|
||||||
|
|
||||||
can :index, :dailysale
|
can :index, :dailysale
|
||||||
|
|||||||
Reference in New Issue
Block a user