To obtain the company's receivable bills, you must create a collection as shown below.
[Collection: CMPRecevables]
Type : Bills
Is ODBC Table : YEs
Filter : IsReceivable
Fetch : Name, BillDate, Parent, ClosingBalance
Connect this table using odbc and use below query
select $Name, $BillDate, $Parent, $ClosingBalance from CMPRecevables