updateability
This commit is contained in:
@@ -41,8 +41,8 @@ class Ability
|
|||||||
can :index, :void_sale
|
can :index, :void_sale
|
||||||
|
|
||||||
can :get_customer, Customer
|
can :get_customer, Customer
|
||||||
can :add_customer, Customer
|
can :add_customer, Customer
|
||||||
can :update_sale_by_customer, Customer
|
can :update_sale_by_customer, Customer
|
||||||
|
|
||||||
can :index, :other_charge
|
can :index, :other_charge
|
||||||
can :create, :other_charge
|
can :create, :other_charge
|
||||||
@@ -57,7 +57,7 @@ class Ability
|
|||||||
can :reprint, :payment
|
can :reprint, :payment
|
||||||
can :rounding_adj, :payment
|
can :rounding_adj, :payment
|
||||||
|
|
||||||
can :move_dining, :movetable
|
can :move_dining, :movetable
|
||||||
can :moving, :movetable
|
can :moving, :movetable
|
||||||
|
|
||||||
can :move_dining, :moveroom
|
can :move_dining, :moveroom
|
||||||
@@ -71,14 +71,14 @@ class Ability
|
|||||||
can :overall_void, :void
|
can :overall_void, :void
|
||||||
|
|
||||||
elsif user.role == "cashier"
|
elsif user.role == "cashier"
|
||||||
|
|
||||||
# can :overall_void, :void
|
# can :overall_void, :void
|
||||||
|
|
||||||
can :read, Order
|
can :read, Order
|
||||||
can :update, Order
|
can :update, Order
|
||||||
|
|
||||||
can :read, Sale
|
can :read, Sale
|
||||||
can :update, Sale
|
can :update, Sale
|
||||||
can :get_customer, Customer
|
can :get_customer, Customer
|
||||||
can :add_customer, Customer
|
can :add_customer, Customer
|
||||||
can :update_sale_by_customer, Customer
|
can :update_sale_by_customer, Customer
|
||||||
@@ -97,7 +97,7 @@ class Ability
|
|||||||
can :reprint, :payment
|
can :reprint, :payment
|
||||||
can :rounding_adj, :payment
|
can :rounding_adj, :payment
|
||||||
|
|
||||||
can :move_dining, :movetable
|
can :move_dining, :movetable
|
||||||
can :moving, :movetable
|
can :moving, :movetable
|
||||||
|
|
||||||
can :move_dining, :moveroom
|
can :move_dining, :moveroom
|
||||||
@@ -108,7 +108,7 @@ class Ability
|
|||||||
can :reprint, :payment
|
can :reprint, :payment
|
||||||
|
|
||||||
can :manage, DiningQueue
|
can :manage, DiningQueue
|
||||||
|
|
||||||
elsif user.role == "account"
|
elsif user.role == "account"
|
||||||
|
|
||||||
can :index, :dailysale
|
can :index, :dailysale
|
||||||
@@ -122,9 +122,18 @@ class Ability
|
|||||||
|
|
||||||
can :edit, :sale_edit
|
can :edit, :sale_edit
|
||||||
can :item_void, :sale_edit
|
can :item_void, :sale_edit
|
||||||
|
can :an :edit, :sale_edit
|
||||||
|
can :item_void, :sale_edit
|
||||||
can :item_edit, :sale_edit
|
can :item_edit, :sale_edit
|
||||||
can :item_void_cancel, :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 :apply_void, :sale_edit
|
||||||
can :overall_void, :void
|
can :overall_void, :void
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user