check tax profile for move
This commit is contained in:
@@ -36,8 +36,10 @@ class Origami::MovetableController < BaseOrigamiController
|
||||
accounts = @customer.tax_profiles
|
||||
@account_arr =[]
|
||||
accounts.each do |acc|
|
||||
account = TaxProfile.find(acc)
|
||||
@account_arr.push(account)
|
||||
account = TaxProfile.find_by_id(acc)
|
||||
if !account.nil?
|
||||
@account_arr.push(account)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -57,7 +59,7 @@ class Origami::MovetableController < BaseOrigamiController
|
||||
# accounts = @customer.tax_profiles
|
||||
# @account_arr =[]
|
||||
# accounts.each do |acc|
|
||||
# account = TaxProfile.find(acc)
|
||||
# account = TaxProfile.find_by_id(acc)
|
||||
# @account_arr.push(account)
|
||||
# end
|
||||
# end
|
||||
|
||||
Reference in New Issue
Block a user