|
@@ -29,6 +29,7 @@ class DashboardController < ApplicationController
|
|
|
@product_ranking << obj
|
|
@product_ranking << obj
|
|
|
end
|
|
end
|
|
|
@product_ranking = ActionController::Base.helpers.sanitize(@product_ranking.to_json)
|
|
@product_ranking = ActionController::Base.helpers.sanitize(@product_ranking.to_json)
|
|
|
|
|
+ session[:open_cash_register_id] = current_user.pointsale.get_open_cash_register.id if current_user.pointsale.get_open_cash_register.present?
|
|
|
elsif current_user.usertype == 'C'
|
|
elsif current_user.usertype == 'C'
|
|
|
@need_to_open_cash = current_user.pointsale.can_open_cash_register?
|
|
@need_to_open_cash = current_user.pointsale.can_open_cash_register?
|
|
|
session[:open_cash_register_id] = current_user.pointsale.get_open_cash_register.id unless @need_to_open_cash
|
|
session[:open_cash_register_id] = current_user.pointsale.get_open_cash_register.id unless @need_to_open_cash
|