on 04-12-2012 12:40 PM
Hola a todos
Estoy trabajando en un query que necesita el inventario inicial. Alquién puede indicarme donde encuentro dicho campo y su nombre.
Agradecido de antemano.
saludos
Hola.
El inventario inicial hay que calcularlo a partir del movimiento del inventario.
Puedes utilizar la tabla OINM o las tablas OIVL y UIVL (en 8.8 y posteriores). Se puede calcular el stock inicial para un artículo así:
SELECT SUM(T0.InQty-T0.OutQty)
FROM OINM T0
WHERE T0.DocDate >= '[%0]' AND T0.DocDate <= '[%1]' AND T0.ItemCode = @CodArt
Nos cuentas cómo te va.
Saludos Cordiales
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.