check tax profile for move
This commit is contained in:
@@ -30,10 +30,12 @@ class Origami::MoveroomController < 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
|
||||
end
|
||||
end
|
||||
@status_order = 'order'
|
||||
# else
|
||||
# sale = Sale.find(booking.sale_id)
|
||||
@@ -50,7 +52,7 @@ class Origami::MoveroomController < 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
|
||||
|
||||
@@ -36,11 +36,13 @@ class Origami::MovetableController < 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
|
||||
end
|
||||
end
|
||||
end
|
||||
@status_order = 'order'
|
||||
# else
|
||||
# sale = Sale.find(booking.sale_id)
|
||||
@@ -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