The Transaction origin function fetches the transaction entries that are posted to the general ledger and their effect on the subledgers. In addition to that, this function can be performed to fetch any transaction entry. It is commonly used when you need to identify the subledger affected by that entry.
For voucher transactions, navigate to General ledger | Inquiries | Voucher transactions. First, you will get an inquiry screen. Here, you do not have to give any criteria, so click on OK to see the voucher transactions, then select Transaction origin, as shown in the following screenshot: