Jon Kears
08/13/2025, 6:15 AMprevioustransactionaccountinglinelink ON nextdoc = <transactionid> AND nextline = <transactionlineid> AND linktype='RevRec'
Which references the revenue arrangement line in the previousdoc
and previousline
fields
And from that transactionline
I can then get back to revenueelement
.
Is there a way to get back from there to the originating invoice or credit line? There is some information that doesn't make it onto the revenue element that I need to reference. I can get back to the transaction using source
, but it doesn't seem possible to reference an individual line.Edgar Valdes
08/13/2025, 9:30 PMFROM
transactionline tl //these are the journal lines
JOIN PreviousTransactionLineLink ntll ON (tl.transaction = ntll.nextdoc AND tl.id = ntll.nextline)
JOIN transaction vendbill ON vendbill.id = tl.createdfrom
JOIN transaction journal ON journal.id = tl.transaction
JOIN transactionline bill_line ON (bill_line.transaction = vendbill.id AND bill_line.isrevrectransaction = 'T' AND bill_line.id = previousline)
JOIN transaction po ON po.id = bill_line.createdfrom
Jon Kears
08/18/2025, 11:29 PM