diff --git a/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb b/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb index 9523d7e4cd..2ee552ea70 100644 --- a/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb +++ b/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb @@ -126,7 +126,7 @@ module Reporting order_cycle: order.order_cycle&.name, payment_method: order.payments.first&.payment_method&.name, order_number: order.number, - date: order.completed_at, + date: order.completed_at.strftime("%F %T"), } end diff --git a/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb b/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb index 40297f34c8..f825264982 100644 --- a/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb +++ b/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb @@ -38,6 +38,11 @@ module Reporting expect(report.rows.first.order_number).to eq order.number expect(report.rows.first.date).to eq order.completed_at.strftime("%F %T") end + + it 'includes the summary row' do + expect(report.rows.second.quantity).to eq "TOTAL" + expect(report.rows.second.date).to eq order.completed_at.strftime("%F %T") + end end context "loading shipping methods" do