AOT query

I need to write a query to pull data for

Vendor Open Invoices . this form has only few columns.

my requirement is to gather following things

  1. Vendor Open Invoices

  2. Vouchers related to

  3. Original document.

i have VendOpenTrans, VendTrans but how about Vouchers and Original Document please. any help on this