Identificar nota credito reserva

Hola Grupo, soy nuevo en postear, normalmente siempre consulto temas, pero hoy necesito de sus ayuda.

Como hago para identificar por medio t-sql una nota crédito de tipo inventario no me afecto mis inventarios.

Agradezco su ayuda.

Me toco la mas larga, quisiera saber si alguien tiene alguna mejor opción,

SELECT     ORIN.DocEntry, ORIN.DocNum, OINV.DocEntry AS Expr1, OINV.DocNum AS Expr2
FROM         OINV INNER JOIN
                      ORIN INNER JOIN
                      RIN1 ON ORIN.DocEntry = RIN1.DocEntry ON OINV.DocNum = RIN1.BaseRef AND OINV.DocEntry = RIN1.BaseEntry
WHERE     (OINV.isIns = 'Y')
ORDER BY ORIN.DocNum
1 me gusta

Pues si llevas tiempo por aquí, sabrás que estaría bien que tuvieras una presentación.