Hi,
Try this query:
SELECT T0.[DocDate], T0.[CardCode], T2.[SlpName], T1.[ItemCode], T1.[Dscription], sum(T1.[LineTotal]) as 'Line total' FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode WHERE T0.[DocDate] between [%0] and [%1] GROUP BY T0.[DocDate], T0.[CardCode], T2.[SlpName], T1.[ItemCode], T1.[Dscription]
Thanks & Regards,
Nagarajan