QUERY PLAN
Index Scan using tbl_purchase_contracts_pkey on tbl_purchase_contracts (cost=0.28..8.31 rows=1 width=113)
Index Cond: (id = 4203)
Filter: ((cost_type = 2) AND (supplier_id = 734) AND ((amount - erp_all_settle_amount) > '0'::numeric))