QUERY PLAN
Aggregate (cost=2.91..2.92 rows=1 width=8)
-> Sort (cost=2.89..2.89 rows=1 width=303)
Sort Key: r.created_at DESC
-> Seq Scan on tbl_erp_other_collect_tickets r (cost=0.00..2.88 rows=1 width=303)
Filter: ((bank_settle_at IS NOT NULL) AND (status = 2) AND (supplier_id = 431) AND ((amount - settle_amount) > '0'::numeric))