Motores del proyecto Forseti











 |
|
Auxiliares eliminando polizas X |
Documentación del reporte "Auxiliares eliminando polizas X"
|
Estructura del reporte |
Datos del Cabecero |
Clave |
Descripción |
Base |
Módulo |
|
10051 |
Auxiliares eliminando polizas X |
CONTABILIDAD |
POLIZAS |
|
|
Filtro |
Objeto |
Descripción |
Tipo de dato |
|
Mes |
Mes |
BYTE |
|
Ano |
Ano |
INT |
|
Eliminar |
Tipo de poliza a eliminar |
STRING |
|
Cuenta |
Cuenta de 4 digitos Ej: 8101 |
STRING |
|
|
Datos del Nivel 1 |
Nombre de Columna |
Tipo de Dato |
cuenta |
STRING |
nombre |
STRING |
debe |
MONEY |
haber |
MONEY |
mes |
INT |
ano |
INT |
eliminar |
STRING |
Código fuente |
select cat.cuenta, cat.nombre, sum(d.Debe) as debe, sum(d.Haber) as haber, [Mes] as Mes, [Ano] as Ano, '[Eliminar]' as Eliminar
from TBL_CONT_POLIZAS_DETALLE d INNER JOIN TBL_CONT_POLIZAS c ON c.ID = d.ID INNER JOIN TBL_CONT_CATALOGO cat ON d.Cuenta = cat.Cuenta
where c.Status <> 'C' and date_part('MONTH',c.Fecha) = [Mes] and date_part('YEAR',c.Fecha) = [Ano] and d.Cuenta like '[Cuenta]%' and c.Tipo <> '[Eliminar]'
group by cat.Cuenta, cat.Nombre
order by cat.Cuenta
|
|
|
total |
STRING |
debe |
MONEY |
haber |
MONEY |
Código fuente |
select 'TOTALES' as Total, sum(d.Debe) as Debe, sum(d.Haber) as Haber
from TBL_CONT_POLIZAS_DETALLE d INNER JOIN TBL_CONT_POLIZAS c ON c.ID = d.ID INNER JOIN TBL_CONT_CATALOGO cat ON d.Cuenta = cat.Cuenta
where c.Status <> 'C' and date_part('MONTH',c.Fecha) = [Mes] and date_part('YEAR',c.Fecha) = [Ano] and d.Cuenta like '[Cuenta]%' and c.Tipo <> '[Eliminar]'
|
|
|
Datos del Nivel 2 |
Nombre de Columna |
Tipo de Dato |
tipo |
STRING |
numero |
INT |
ref |
STRING |
fecha |
TIME |
concepto |
STRING |
debe |
MONEY |
haber |
MONEY |
Código fuente |
select c.Tipo, c.Numero,
case when (select Doc from TBL_BANCOS_MOVIMIENTOS where Pol_ID = c.ID ) is null then '' else (select Doc from TBL_BANCOS_MOVIMIENTOS where Pol_ID = c.ID ) end as Ref, c.Fecha, d.Concepto, d.Debe, d.Haber
from TBL_CONT_POLIZAS_DETALLE d INNER JOIN TBL_CONT_POLIZAS c ON c.ID = d.ID INNER JOIN TBL_CONT_CATALOGO cat ON d.Cuenta = cat.Cuenta
where c.Status <> 'C' and date_part('MONTH',c.Fecha) = [mes] and date_part('YEAR',c.Fecha) = [ano] and d.Cuenta = '[cuenta]' and c.Tipo <> '[eliminar]'
order by d.Cuenta
|
|
|
|
|
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 |
|
|