From de5ccb9ce6fd3fd49363490394ba5e8cd165117c Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 24 Jan 2019 14:33:55 -0600 Subject: [PATCH] End of year report now displays date properly --- lib/query/query_supporters.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/query/query_supporters.rb b/lib/query/query_supporters.rb index c141ff12..a0f9f5b0 100644 --- a/lib/query/query_supporters.rb +++ b/lib/query/query_supporters.rb @@ -609,11 +609,11 @@ UNION DISTINCT aggregate_dons = %Q( array_to_string( array_agg( - payments.created_at::date || ' ' || + payments.date::date || ' ' || (payments.gross_amount / 100)::text::money || ' ' || coalesce(payments.kind, '') || ' ' || coalesce(payments.towards, '') - ORDER BY payments.created_at DESC + ORDER BY payments.date DESC ), '\n' ) AS "Payment History"