From 9cfd7db99d52425ef5e023c8d3e48794470d76fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Sun, 3 May 2020 17:57:20 +0200 Subject: [PATCH] Change date displayed on sales_tax reports --- lib/open_food_network/sales_tax_report.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_food_network/sales_tax_report.rb b/lib/open_food_network/sales_tax_report.rb index 1ce3f860dd..874561c339 100644 --- a/lib/open_food_network/sales_tax_report.rb +++ b/lib/open_food_network/sales_tax_report.rb @@ -57,7 +57,7 @@ module OpenFoodNetwork totals = totals_of order.line_items shipping_cost = shipping_cost_for order - [order.number, order.created_at, totals[:items], totals[:items_total], + [order.number, order.completed_at.strftime("%F %T"), totals[:items], totals[:items_total], totals[:taxable_total], totals[:sales_tax], shipping_cost, order.shipping_tax, order.enterprise_fee_tax, order.total_tax, order.bill_address.full_name, order.distributor.andand.name] end