at the moment there is a loose link between transactionhistories.reference and soporderreturns.documentno / poporderreturns/documentno - though this can cause some issues designing reports or getting information on reports. It would be a lot easier with an ID that would link back to the transactionhistories as using the filter type of 15/16 would then only return the results you need (hopefully!)