check payment and ability for split bill

This commit is contained in:
phyusin
2018-03-13 10:58:06 +06:30
parent 2282bf52f8
commit 30bfb060df
2 changed files with 25 additions and 14 deletions

View File

@@ -93,6 +93,11 @@ class Ability
can :index, :home
can :show, :home
#ability for split_bill
can :index, :split_bill
can :create, :split_bill
can :update_sale, :split_bill
elsif user.role == "cashier"
# can :overall_void, :void
@@ -191,6 +196,11 @@ class Ability
can :index, :home
can :show, :home
#ability for split_bill
can :index, :split_bill
can :create, :split_bill
can :update_sale, :split_bill
elsif user.role == "waiter"
can :index, :home
can :show, :home