Motores del proyecto Forseti











 |
|
| RESUMEN DE VENTAS PORMENORIZADO POR MES Y ENTIDAD |
Documentación del reporte "RESUMEN DE VENTAS PORMENORIZADO POR MES Y ENTIDAD"
|
| Estructura del reporte |
| Datos del Cabecero |
| Clave |
Descripción |
Base |
Módulo |
|
| 610 |
RESUMEN DE VENTAS PORMENORIZADO POR MES Y ENTIDAD |
VENTAS |
FACTURAS |
|
|
| Filtro |
| Objeto |
Descripción |
Tipo de dato |
|
| Mes |
MES DEL PERIODO |
BYTE |
|
| Ano |
ANO DEL PERIODO |
INT |
|
| Entidad |
ENTIDAD DE VENTA |
BYTE |
|
|
| Datos del Nivel 1 |
| Nombre de Columna |
Tipo de Dato |
| id_factura |
INT |
| fecha |
TIME |
| factura |
INT |
| cve |
INT |
| nombre |
STRING |
| moneda |
STRING |
| tc |
MONEY |
| subtotal |
MONEY |
| descuento |
MONEY |
| neto |
MONEY |
| Código fuente |
|
select c.ID_Factura, c.Fecha, c.Numero as Factura, 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' = ro
|
|
|
| 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_VENTAS_FACTURAS_CAB c
where c.Status <> 'C' and Mont
|
|
|
| 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_UnidadSalida 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_VENTAS_FA
|
|
|
|
| |
| 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 |
|
|