From 0dea849d462a7a2c3ea6a4b12e4e64cec74d745a Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 20 Apr 2018 18:22:36 +0630 Subject: [PATCH] update ability account and suvisor and manager --- app/models/ability.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/models/ability.rb b/app/models/ability.rb index e9509289..5eab518f 100755 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -40,6 +40,8 @@ class Ability can :index, :shiftsale can :index, :credit_payment can :index, :void_sale + can :index, :waste_and_spoilage + can :index, :product_sale can :show, :dailysale can :show, :saleitem @@ -47,6 +49,8 @@ class Ability can :show, :shiftsale can :show, :credit_payment can :show, :void_sale + can :show, :waste_and_spoilage + can :show, :product_sale can :get_customer, Customer can :add_customer, Customer @@ -114,6 +118,9 @@ class Ability can :print, :print can :print_order_summary, :print + can :read, ShiftSale + can :update, ShiftSale + elsif user.role == "cashier" # can :overall_void, :void @@ -185,12 +192,16 @@ class Ability can :index, :shiftsale can :index, :credit_payment can :index, :void_sale + can :index, :waste_and_spoilage + can :index, :product_sale can :show, :dailysale can :show, :saleitem can :show, :receipt_no can :show, :shiftsale can :show, :credit_payment can :show, :void_sale + can :show, :waste_and_spoilage + can :show, :product_sale elsif user.role == "supervisor"