Hello everyone,
We are building a custom report and I am unsure how to fetch a customer's invoice settlements via code. From the CustTrans form, I select a voucher and decide to click on "View settlements" as seen below:

This brings us to the following screen that I wish to fetch in a while select statement:

I'd like to get all the records above in a while select statement (ex: ARI, REC, etc...) so that we can continue our custom report. Any ideas?
Thanks