Merge pull request #140 from houdiniproject/fix_bug_in_end_of_year_export
Fix bug in end of year export
This commit is contained in:
commit
17ffa8434e
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
require 'rails_helper'
|
||||
|
||||
describe QueryCampaignGifts do
|
||||
describe QuerySupporters do
|
||||
GIFT_LEVEL_ONE_TIME = 1111
|
||||
GIFT_LEVEL_RECURRING = 5585
|
||||
GIFT_LEVEL_CHANGED_RECURRING = 5512
|
||||
|
|
Loading…
Reference in a new issue