check tax error, filter for credit payment report and add query for sale payment in receipt no detail

This commit is contained in:
phyusin
2018-07-20 13:43:29 +06:30
parent 91fc8696af
commit 5c75a99e41
6 changed files with 14 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ class Origami::HomeController < BaseOrigamiController
accounts = @customer.tax_profiles
@account_arr =[]
accounts.each do |acc|
account = TaxProfile.find(acc)
account = TaxProfile.find_by_id(acc)
if !account.nil?
@account_arr.push(account)
end
@@ -85,7 +85,7 @@ class Origami::HomeController < BaseOrigamiController
accounts = @customer.tax_profiles
@account_arr =[]
accounts.each do |acc|
account = TaxProfile.find(acc)
account = TaxProfile.find_by_id(acc)
if !account.nil?
@account_arr.push(account)
end