update ability account and suvisor and manager

This commit is contained in:
Aung Myo
2018-04-20 18:22:36 +06:30
parent cc4fdf2384
commit 0dea849d46

View File

@@ -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"