check customer tax profiles in origami

This commit is contained in:
phyusin
2018-02-19 14:49:46 +06:30
parent d134e3f67d
commit 9f2bab7187

View File

@@ -88,14 +88,17 @@ class Origami::HomeController < BaseOrigamiController
end end
@order_items.push(item) @order_items.push(item)
end end
accounts = @customer.tax_profiles @account_arr = Array.new
puts accounts.to_json if @customer.tax_profiles
puts "sssssssssss" accounts = @customer.tax_profiles
puts @customer.tax_profiles puts accounts.to_json
@account_arr =[] puts "sssssssssss"
accounts.each do |acc| puts @customer.tax_profiles
account = TaxProfile.find(acc) @account_arr =[]
@account_arr.push(account) accounts.each do |acc|
account = TaxProfile.find(acc)
@account_arr.push(account)
end
end end
end end
end end