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