Hello Experts,
I have written a query that returns data from DRAFT A/P Credit Memos. It returns all line items and includes all linked batch numbers if any.
I want to run the same query against A/P Credit memos once the document is 'added'. Here's the current query...
select odrf.docentry, DRF1.itemcode, DRF1.dscription, odrf.cardcode, obtn.distnumber, odrf.Docdate as 'Date Opened'
from odrf
join DRF1 on odrf.docentry = DRF1.docentry
left join DRF16 on DRF1.docentry = DRF16.absentry AND DRF1.linenum = drf16.linenum
left join obtn on DRF16.objabs = obtn.absentry
where DRF1.dscription IS NOT NULL
AND odrf.objtype = 19
I'm having a difficult time translating this logic over to live documents. It seems there is no equivalent table to DRF16 on live documents?