The essential tables that the report accesses are the following:
Table
Description
Invoices
Invoice Header for items sold on account. Actual invoice items are in
transact
table.
Prefs_ac
Preferences - Accounts/invoices.