QUERY PLAN
Aggregate (cost=487.58..487.59 rows=1 width=32)
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..487.21 rows=149 width=5)
Filter: ((created_at >= '2025-08-08 14:34:58+08'::timestamp with time zone) AND (bank_settle_at <= '2026-06-30 23:59:59+08'::timestamp with time zone) AND (status = 2))