Buenas noches @Jeanc_18 el informe que necesitas se forma de facturas y notas de credito, te puedes apoyar del siguiente query el cual te da el analisis de ventas por cliente
SELECT T4.CardCode, T4.CardName, T3.ItmsGrpCod, T3.ItmsGrpNam, T1.ItemCode, T2.ItemName AS Producto, SUM(T1.Quantity) AS Cantidad,SUM(T1.LineTotal) AS Tventa, SUM(T1.GPTtlBasPr) AS Costo, SUM(T1.LineTotal - T1.GPTtlBasPr) AS Utilidad, T0.DocCur
FROM OINV AS T0
INNER JOIN INV1 AS T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OITM AS T2 ON T1.ItemCode = T2.ItemCode
INNER JOIN OITB AS T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
INNER JOIN OCRD AS T4 ON T0.CardCode = T4.CardCode
WHERE T0.DocDate >= CONVERT(datetime,'01/05/2021',103) AND T0.DocDate <= CONVERT(datetime,'13/05/2021',103) AND T0.DocCur = 'MXP'
GROUP BY T4.CardCode, T1.ItemCode, T2.ItemName, T0.DocCur, T3.ItmsGrpCod, T3.ItmsGrpNam, T4.CardName
UNION ALL
SELECT T4.CardCode, T4.CardName, T3.ItmsGrpCod, T3.ItmsGrpNam, T1.ItemCode, T2.ItemName AS Producto, SUM(T1.Quantity * -1) AS Cantidad, SUM(T1.LineTotal * -1) AS Tventa, SUM(T1.GPTtlBasPr * -1) AS Costo, SUM((T1.LineTotal - T1.GPTtlBasPr) * -1) AS Utilidad, T0.DocCur
FROM ORIN T0
INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
INNER JOIN OITB AS T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
INNER JOIN OCRD AS T4 ON T0.CardCode = T4.CardCode
WHERE T0.DocDate >= CONVERT(datetime,'01/05/2021',103) AND T0.DocDate <= CONVERT(datetime,'13/05/2021',103) AND T0.DocCur = 'MXP'
GROUP BY T4.CardCode, T1.ItemCode, T2.ItemName, T0.DocCur, T3.ItmsGrpCod, T3.ItmsGrpNam, T4.CardName