updateability

This commit is contained in:
yamin
2017-08-14 10:18:59 +06:30
parent 2cad08277e
commit 646492fbd6

View File

@@ -41,8 +41,8 @@ class Ability
can :index, :void_sale
can :get_customer, Customer
can :add_customer, Customer
can :update_sale_by_customer, Customer
can :add_customer, Customer
can :update_sale_by_customer, Customer
can :index, :other_charge
can :create, :other_charge
@@ -57,7 +57,7 @@ class Ability
can :reprint, :payment
can :rounding_adj, :payment
can :move_dining, :movetable
can :move_dining, :movetable
can :moving, :movetable
can :move_dining, :moveroom
@@ -71,14 +71,14 @@ class Ability
can :overall_void, :void
elsif user.role == "cashier"
# can :overall_void, :void
can :read, Order
can :update, Order
can :read, Sale
can :update, Sale
can :read, Sale
can :update, Sale
can :get_customer, Customer
can :add_customer, Customer
can :update_sale_by_customer, Customer
@@ -97,7 +97,7 @@ class Ability
can :reprint, :payment
can :rounding_adj, :payment
can :move_dining, :movetable
can :move_dining, :movetable
can :moving, :movetable
can :move_dining, :moveroom
@@ -108,7 +108,7 @@ class Ability
can :reprint, :payment
can :manage, DiningQueue
elsif user.role == "account"
can :index, :dailysale
@@ -122,9 +122,18 @@ class Ability
can :edit, :sale_edit
can :item_void, :sale_edit
can :an :edit, :sale_edit
can :item_void, :sale_edit
can :item_edit, :sale_edit
can :item_void_cancel, :sale_edit
can :cancel_all_void, :sale_edit
can :cancel_all_void, :sale_edit
can :apply_void, :sale_edit
can :overall_void, :void
can :first_bill, :payment
can :citem_edit, :sale_edit
can :item_void_cancel, :sale_edit
can :cancel_all_void, :sale_edit
can :apply_void, :sale_edit
can :overall_void, :void