Informae
Publicado por Vero (2 intervenciones) el 04/12/2000 00:00:00
Hola,
Necesito que me ayuden en la realización de un informe.
Yo genero un cursor:
select liqmes, liqaño, liqemp, empnom, liqleg, legnom, legape,;
liqcon, contipo, connom, conapcon, sum(liqcant), sum(liqimp);
from movliq, maeleg, maecon, maeemp;
where liqmes = mes and liqaño = año and;
legemp = liqemp and legcod = liqleg and;
liqcon = concod and liqemp = empcod and liqemp = emp;
order by liqcon group by liqcon into cursor control
luego llamo al reporte y me debería aparecer:
LIQUIDACION DE HABERES AL XX/XXXX
EMPRESA: XXXXXXXXXXXXXX
(1) CONCEPTOS SUJETO A APORTE Y CONTRIBUCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(2) CONCEPTOS NO SUJETO A APORTE Y CONTRIBUCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(3) RETENCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(4) ASIGNACIONES FEMILIARES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(5) CONTRIBUCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
Donde se tiene en cuenta lo siguiente para separar los grupos:
(1) contipo < 3 and conapcon = 1
(2) contipo < 3 and conapcon = 0
(3) contipo = 3
(4) contipo = 4
(5) contipo = 5
Ya probé muchas cosas, el tema es que no me doy cuenta como hacer
para que me aparezcan los títulos y por debajo los conceptos. Probé
haciendo grupos, pero debo estar haciendo algo mal.
Por favor, agradecería su ayuda.
Necesito que me ayuden en la realización de un informe.
Yo genero un cursor:
select liqmes, liqaño, liqemp, empnom, liqleg, legnom, legape,;
liqcon, contipo, connom, conapcon, sum(liqcant), sum(liqimp);
from movliq, maeleg, maecon, maeemp;
where liqmes = mes and liqaño = año and;
legemp = liqemp and legcod = liqleg and;
liqcon = concod and liqemp = empcod and liqemp = emp;
order by liqcon group by liqcon into cursor control
luego llamo al reporte y me debería aparecer:
LIQUIDACION DE HABERES AL XX/XXXX
EMPRESA: XXXXXXXXXXXXXX
(1) CONCEPTOS SUJETO A APORTE Y CONTRIBUCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(2) CONCEPTOS NO SUJETO A APORTE Y CONTRIBUCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(3) RETENCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(4) ASIGNACIONES FEMILIARES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
(5) CONTRIBUCIONES
Concepto Cantidad Importe
Xxx xxxxxxxxxxxxxx xxxxx xxxxx
Donde se tiene en cuenta lo siguiente para separar los grupos:
(1) contipo < 3 and conapcon = 1
(2) contipo < 3 and conapcon = 0
(3) contipo = 3
(4) contipo = 4
(5) contipo = 5
Ya probé muchas cosas, el tema es que no me doy cuenta como hacer
para que me aparezcan los títulos y por debajo los conceptos. Probé
haciendo grupos, pero debo estar haciendo algo mal.
Por favor, agradecería su ayuda.
Valora esta pregunta


0