Juan Corado
09/28/2021, 6:02 PMGeneralKenobi
09/28/2021, 6:17 PMselect BUILTIN.DF(tl.item) as item,
tl.linesequencenumber,
tl.quantity,
tl.rate,
tl.custcol_receipt_identifier
from Transaction t
join TransactionLine tl
ON ( tl.Transaction = t.ID )
where type ='PurchOrd'
and t.ID = 1490919
and tl.item in (select item
from Transaction t
join TransactionLine tl
ON ( tl.Transaction = t.ID )
where type ='PurchOrd'
and t.ID = 1490919
group by item
HAVING COUNT(*) > 1)
order by BUILTIN.DF(tl.item),tl.linesequencenumber
Juan Corado
09/28/2021, 6:20 PMGeorge McMullen
09/28/2021, 8:59 PM