Extra Fields on Accounting Ledger getting invoice lines

Greetings,

Is it possible to add extra fields on the accounting ledger that fetches sales invoice items and purchase invoice items on a line where the doctype is an invoice? to create a sort of detailed cash flow document.

Any help is appreciated.

Kr,

Oasis