Use ReportsHelper for currency_symbol

This commit is contained in:
Rohan Mitchell
2015-01-08 14:15:57 +11:00
parent 3b4d73760b
commit 10e5d09416

View File

@@ -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"]