Include an option on both the sales and purchase ledger transactions enquiry screen to drill down to the original sales order or purchase order that generated the transaction.