Buenas tardes a todos,
Quiero aportar un query como subinforme de relacion de lotes del documento de entrega y que se imprima en el formato de factura de cliente.
Espero que a alguien pueda servirle
select T0.DocType as 'Tipo Doc', T0.DocEntry 'Doc. Entrega',T1.ItemCode as 'Codigo',T0.ItemName, T1.Quantity as 'Cant. para Entrega',
T0.DocQty as 'Cant. Documento', T0.DocDate, T0.CardCode, T0.CardName,T2."DistNumber"
from OITL T0
inner join ITL1 T1 on T0.LogEntry = T1.LogEntry
left join OBTN T2 on T1."MdAbsEntry"=T2."AbsEntry" and T0."ItemCode"=T2."ItemCode"
--where T0.ItemCode = artículo and
where T0.DocType = '15' and T0.DocEntry = '60500'