app/controllers/avatax/configuration_controller.rb in killbill-avatax-0.1.0 vs app/controllers/avatax/configuration_controller.rb in killbill-avatax-0.2.0
- old
+ new
@@ -11,10 +11,10 @@
#
# Tax Codes
#
def set_tax_code
- @products = KillBillClient::Model::Catalog.simple_catalog(options_for_klient).products.map(&:name)
+ @products = KillBillClient::Model::Catalog.simple_catalog(options_for_klient).last.products.map(&:name)
end
def do_set_tax_code
::Killbill::Avatax::AvataxClient.set_tax_code(params.require(:product_name),
params.require(:tax_code),