End of year report now displays date properly

This commit is contained in:
Eric Schultz 2019-01-24 14:33:55 -06:00
parent f8992794e7
commit de5ccb9ce6

View file

@ -609,11 +609,11 @@ UNION DISTINCT
aggregate_dons = %Q( aggregate_dons = %Q(
array_to_string( array_to_string(
array_agg( array_agg(
payments.created_at::date || ' ' || payments.date::date || ' ' ||
(payments.gross_amount / 100)::text::money || ' ' || (payments.gross_amount / 100)::text::money || ' ' ||
coalesce(payments.kind, '') || ' ' || coalesce(payments.kind, '') || ' ' ||
coalesce(payments.towards, '') coalesce(payments.towards, '')
ORDER BY payments.created_at DESC ORDER BY payments.date DESC
), ),
'\n' '\n'
) AS "Payment History" ) AS "Payment History"