Motores del proyecto Forseti











 |
|
| Diferencias en determinado chequeo físico ( por ID del chequeo ) |
Documentación del reporte "Diferencias en determinado chequeo físico ( por ID del chequeo )"
|
| Estructura del reporte |
| Datos del Cabecero |
| Clave |
Descripción |
Base |
Módulo |
|
| 11011 |
Diferencias en determinado chequeo físico ( por ID del chequeo ) |
ALMACEN |
CHEQUEO FISICO |
|
|
| Filtro |
| Objeto |
Descripción |
Tipo de dato |
|
| ID_CHFIS |
Ingresa el ID del Chequeo |
INT |
|
|
| Datos del Nivel 1 |
| Nombre de Columna |
Tipo de Dato |
| id_chfis |
INT |
| fecha |
TIME |
| nombre |
STRING |
| status |
STRING |
| Código fuente |
|
select c.ID_CHFIS, c.Fecha, b.Nombre, c.Status
from TBL_INVSERV_CHFIS_CAB c INNER JOIN TBL_INVSERV_BODEGAS b
ON c.ID_Bodega = b.ID_Bodega where ID_CHFIS = [ID_CHFIS];
|
|
|
| total |
STRING |
| suma |
MONEY |
| Código fuente |
|
select 'Diferencias:' as Total, round(SUM(i.Precio * c.Diff),2) as Suma
from TBL_INVSERV_CHFIS_DET c INNER JOIN TBL_INVSERV_INVENTARIOS i
ON c.ID_Prod = i.ID_Prod WHERE c.ID_CHFIS = [ID_CHFIS] and c.Diff <> 0;
|
|
|
| Datos del Nivel 2 |
| Nombre de Columna |
Tipo de Dato |
| id_prod |
STRING |
| descripcion |
STRING |
| habia |
DECIMAL |
| deberia |
DECIMAL |
| diff |
DECIMAL |
| precio |
MONEY |
| total |
MONEY |
| Código fuente |
|
select c.ID_Prod, i.Descripcion, c.Cantidad as Habia, c.Cantidad - c.Diff as Deberia, c.Diff, i.Precio, round(i.Precio * c.Diff,2) as Total
from TBL_INVSERV_CHFIS_DET c INNER JOIN TBL_INVSERV_INVENTARIOS i
ON c.ID_Prod = i.ID_Prod WHERE c.ID_CHFIS = [id_chfis] and Diff <> 0.00 ORDER BY i.ID_Prod;
|
|
|
|
| |
| Páginas relacionadas con este tema |
Carga de reportes y gráficas Interfaz de la carga de reportes y gráficas en el CEF y SAF |
|
|