QUERY PLAN
Aggregate (cost=24.29..24.30 rows=1 width=32)
-> Hash Right Join (cost=10.04..24.01 rows=109 width=5)
Hash Cond: (eipss.erp_sales_outbound_id = t.id)
-> Seq Scan on tbl_erp_inventory_product_spents eipss (cost=0.00..12.51 rows=551 width=9)
-> Hash (cost=9.66..9.66 rows=30 width=4)
-> Seq Scan on tbl_erp_sales_outbounds t (cost=0.00..9.66 rows=30 width=4)
Filter: ((verify_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (verify_at <= '2026-06-30 23:59:59+08'::timestamp with time zone) AND (status = 2))