shop_detail func: update in base

This commit is contained in:
phyusin
2019-01-07 16:05:18 +06:30
parent cca350b264
commit ccd9855281
15 changed files with 20 additions and 94 deletions

View File

@@ -3,7 +3,7 @@ module LoginVerification
included do
before_action :authenticate_session_token
helper_method :current_company,:current_shop, :current_login_employee, :current_user, :get_cashier, :order_reservation, :bank_integration
helper_method :current_company,:current_shop, :current_login_employee, :current_user, :get_cashier, :order_reservation, :bank_integration, :shop_detail
end
#this is base api base controller to need to inherit.
@@ -38,6 +38,12 @@ module LoginVerification
@cashier = Employee.where("role = 'cashier' AND token_session <> ''")
end
#Shop Name in Navbor
def shop_detail
@shop = Shop.first
end
#check order reservation used
def order_reservation
order_reserve = Lookup.collection_of('order_reservation')