Motores del proyecto Forseti











 |
|
RESUMEN DE COMPRAS PORMENORIZADO POR MES Y ENTIDAD |
Documentación del reporte "RESUMEN DE COMPRAS PORMENORIZADO POR MES Y ENTIDAD"
|
Estructura del reporte |
Datos del Cabecero |
Clave |
Descripción |
Base |
Módulo |
|
310 |
RESUMEN DE COMPRAS PORMENORIZADO POR MES Y ENTIDAD |
COMRAS |
COMPRAS |
|
|
Filtro |
Objeto |
Descripción |
Tipo de dato |
|
Mes |
MES DEL PERIODO |
BYTE |
|
Ano |
ANO DEL PERIODO |
INT |
|
Entidad |
ENTIDAD DE COMPRA |
BYTE |
|
|
Datos del Nivel 1 |
Nombre de Columna |
Tipo de Dato |
id_recepcion |
INT |
fecha |
TIME |
recepcion |
INT |
cve |
INT |
nombre |
STRING |
moneda |
STRING |
tc |
MONEY |
subtotal |
MONEY |
descuento |
MONEY |
neto |
MONEY |
Código fuente |
select c.ID_Recepcion, c.Fecha, c.Numero as Recepcion, cp.ID_Numero as Cve, cp.Nombre,
'Moneda' = case when c.Moneda = 1 then '' else m.Moneda end,
'TC' = case when c.Moneda = 1 then 0 else c.TC end, 'SubTotal' = round(c.Importe * c.TC,2), 'Descuento'
|
|
|
totales |
STRING |
subtotal |
MONEY |
descuento |
MONEY |
neto |
MONEY |
Código fuente |
select 'TOTALES' = 'TOTAL:', 'SUBTOTAL' = isnull(SUM(round(c.Importe * c.TC,2)),0), 'DESCUENTO' = isnull(SUM(round(c.Descuento * c.TC,2)),0), 'NETO' = isnull(SUM(round(c.SubTotal * c.TC,2)),0)
from TBL_COMPRAS_RECEPCIONES_CAB c
where c.Status <> 'C' and
|
|
|
Datos del Nivel 2 |
Nombre de Columna |
Tipo de Dato |
np |
BYTE |
id_prod |
STRING |
descripcion |
STRING |
uni |
STRING |
cantidad |
DECIMAL |
precio |
MONEY |
importe |
DECIMAL |
%desc |
DECIMAL |
neto |
MONEY |
Código fuente |
select d.Partida as NP, d.ID_Prod, i.Descripcion, i.ID_Unidad as 'UNI', d.Cantidad, 'Precio' = round(d.Precio * c.TC,2), 'Importe' = round(d.Cantidad * d.Precio * c.TC, 2), '%Desc' = d.Descuento, 'Neto' = round(d.Importe * c.TC,2)
from TBL_COMPRAS_RECEPCI
|
|
|
|
|
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 |
|
|