Files
accounted/app/api
Jonas Flodén 6b4bf63fec fix(reports): sort trial balance source lines by date then voucher_number (#763)
.order({ foreignTable }) in Supabase/PostgREST sorts the embedded
resource's rows, not the parent result set. Journal entry lines in the
trial balance drill-down were therefore returned in database insertion
order rather than chronological order.

Sort in JavaScript after fetching — mirroring the approach in
generateGeneralLedger — to guarantee entry_date ASC, voucher_number ASC
ordering regardless of what the database returns.

Signed-off-by: Jonas Flodén <jonas@floden.nu>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-29 22:14:10 +02:00
..
2026-05-26 22:29:41 +02:00
2026-06-10 13:52:24 +02:00
2026-06-16 10:42:37 +02:00
2026-04-11 17:06:32 +02:00
2026-06-05 17:26:40 +02:00
2026-05-06 11:12:02 +02:00
2026-06-29 16:34:51 +02:00
2026-06-29 16:34:51 +02:00
2026-04-11 17:06:32 +02:00
2026-06-18 11:49:33 +02:00
2026-05-08 15:42:06 +02:00
2026-04-29 16:32:26 +02:00
2026-06-16 10:42:37 +02:00