Skip to content

Commit

Permalink
chore: show YYYY in unpaid
Browse files Browse the repository at this point in the history
  • Loading branch information
truc9 committed Dec 14, 2024
1 parent d6785d5 commit f64a543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (s *ReportingService) GetUnpaidReport() ([]UnpaidByPlayer, error) {
GROUP BY m.id, m.sport_center_id, acx.additional_cost
),
cte_registration_history AS (
SELECT p.id AS player_id, STRING_AGG(TO_CHAR(m.start, 'DD.Mon') || ':' || '£' ||ROUND(mc.individual_cost, 2), ',' ORDER BY m.start) AS registration_summary
SELECT p.id AS player_id, STRING_AGG(TO_CHAR(m.start, 'DD.Mon.YYYY') || ':' || '£' ||ROUND(mc.individual_cost, 2), ',' ORDER BY m.start DESC) AS registration_summary
FROM registrations r
JOIN matches m ON m.id = r.match_id
JOIN players p on p.id = r.player_id
Expand Down

0 comments on commit f64a543

Please sign in to comment.