Merge branch 'crm' of bitbucket.org:code2lab/sxrestaurant

This commit is contained in:
Yan
2017-06-30 19:05:49 +06:30
7 changed files with 121 additions and 133 deletions

View File

@@ -36,6 +36,7 @@ class Ability
can :index, :dailysale
can :index, :saleitem
can :index, :receipt_no
can :index, :shiftsale
can :add_customer, Customer
can :update_sale_by_customer, Customer
@@ -101,14 +102,16 @@ class Ability
elsif user.role == "accountant"
can :index, :dailysale
can :manage, :saleitem
can :index, :receiptno
can :index, :saleitem
can :index, :receipt_no
can :index, :shiftsale
elsif user.role == "supervisour"
can :index, :dailysale
can :manage, :saleitem
can :index, :receiptno
can :index, :saleitem
can :index, :receipt_no
can :index, :shiftsale
end