update receipt bill

This commit is contained in:
Aung Myo
2017-06-30 18:02:17 +06:30
parent 45c69ab536
commit 2548fdcac1
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
@@ -98,14 +99,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

View File

@@ -93,7 +93,6 @@ class Sale < ApplicationRecord
end
self.save!
#compute sales summary