From b54ec4354a428a6c2d0347450d572fd4fdfcc777 Mon Sep 17 00:00:00 2001 From: Sebastian Castro Date: Fri, 22 Apr 2022 20:21:59 +0200 Subject: [PATCH] Report TaxRate fix --- lib/reporting/reports/sales_tax/tax_rates.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporting/reports/sales_tax/tax_rates.rb b/lib/reporting/reports/sales_tax/tax_rates.rb index afc62ac3c8..83bd3f2eb0 100644 --- a/lib/reporting/reports/sales_tax/tax_rates.rb +++ b/lib/reporting/reports/sales_tax/tax_rates.rb @@ -11,7 +11,7 @@ module Reporting total_excl_vat: proc { |order| order.total - order.total_tax } } add_key_for_each_rate(result, proc { |rate| - OrderTaxAdjustmentsFetcher.new(order).totals.fetch(rate, 0) + proc { |order| OrderTaxAdjustmentsFetcher.new(order).totals.fetch(rate, 0) } }) other = { total_tax: proc { |order| order.total_tax },