on 03-22-2013 2:19 PM
Estimados amigos:
quisiera que me ayuden o me den una idea de como hacer un reporte de existencias a un fecha por lotes. Por ahi vi un reporte de auditoria por lotes bueno lo que necsito es saber a un fecha que ponga como filtro lo que hubo en stock en los lotes de un articulo
Si coloco la fecha 31/12/2012
Codigo | Articulo | Almacen | Lote | Stock |
A000001 | PRODUCTO | 10 | 12322 | 1000 |
A000001 | PRODUCTO | 10 | 124444 | 500 |
A000001 | PRODUCTO | 10 | 999877 | 70 |
Si coloco la fecha 28/02/2013
Codigo | Articulo | Almacen | Lote | Stock |
A000001 | PRODUCTO | 10 | 12322 | 2000 |
A000001 | PRODUCTO | 10 | 124444 | 400 |
A000001 | PRODUCTO | 10 | 999877 | 10 |
Quisiera un reporte parecido a este que me muestre el stock que hubo en los lotes a un fecha.
Espero su ayuda por favor,
Gracias,
Jesus
Buenas tardes
Chequea el siguiente link: http://www.qualityinfosolutions.com/numeros-de-serie-y-numeros-de-lote/
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SELECT T0.ItemCode, T1.ItemName, T0.BatchNum, T0.WhsCode, T2.WhsName, ISNULL((SELECT SUM(Y.Quantity) FROM IBT1 Y WHERE Y.ItemCode = T0.ItemCode AND Y.WhsCode = T0.WhsCode AND Y.BatchNum = T0.BatchNum AND Y.Direction != '1' AND Y.DocDate <= '[%0]'),0)-ISNULL((SELECT SUM(Y.Quantity) FROM IBT1 Y WHERE Y.ItemCode = T0.ItemCode AND Y.WhsCode = T0.WhsCode AND Y.BatchNum = T0.BatchNum AND Y.Direction = '1' AND Y.DocDate <= '[%0]'),0) 'Stock'
FROM IBT1 T0
INNER JOIN OITM T1 ON T1.ItemCode = T0.ItemCode
INNER JOIN OWHS T2 ON T2.WhsCode = T0.WhsCode
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola.
Para construir este informe puedes utilizar la vista IBT1 que guarda todo el movimiento de los lotes.
Para calcular el stock no hay sino que sumar las cantidades desde la fecha de salida en vivo (la fecha del primer movimiento) hasta la fecha en la que se desea saber el stock.
Puedes consultar otros post que tratan temas similares:
- Auditoria de stock con lotes
- Informe de Inventario por bodega que muestre número de serie o lote
- SALDO DE INVENTARIO A UNA FECHA EN QUERY
Y otros.
Nos cuentas como te fué.
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.