From 10e5d09416fd1f0625b58146334cc54128dfb339 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 8 Jan 2015 14:15:57 +1100 Subject: [PATCH] Use ReportsHelper for currency_symbol --- lib/open_food_network/sales_tax_report.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/open_food_network/sales_tax_report.rb b/lib/open_food_network/sales_tax_report.rb index 86a46187be..2579f91e59 100644 --- a/lib/open_food_network/sales_tax_report.rb +++ b/lib/open_food_network/sales_tax_report.rb @@ -1,13 +1,12 @@ - module OpenFoodNetwork class SalesTaxReport + include Spree::ReportsHelper def initialize orders @orders = orders end def header - currency_symbol = Spree::Money.currency_symbol ["Order number", "Date", "Items", "Items total (#{currency_symbol})", "Taxable Items Total (#{currency_symbol})", "Sales Tax (#{currency_symbol})", "Delivery Charge (#{currency_symbol})", "Tax on Delivery (#{currency_symbol})", "Total Tax (#{currency_symbol})", "Customer", "Distributor"]