Está en la página 1de 2

select *

from gat_plandescabo
where cod_cliente = 24780750

select *
from fa_ciclocli
where cod_cliente = 24780750

select *
from fa_histconc_xxx
where ind_ordentotal = (select ind_ordentotal
from fa_histdocu
where cod_cliente = 24780750
and cod_ciclfact = xxx)

mwn70612

INC000001422631

Se�ores:
El plan de descuento 'RURAL' est� configurado para generar descuentos solo cuando
existan los conceptos 9114 o 9123 y en este caso esto no se cumple, razon por la
cual el plan de descuento no se aplica.
Por lo tanto, no existe error ni problema en nuestros sistemas.

Adjunto querys con las validaciones a modo de evidencia:

-- grupos de evaluacion y aplicacion para el plan de descuento 'RURAL'


SELECT cod_grupoeval, cod_grupoapli FROM FAD_DETPLANDESC WHERE COD_PLANDESC =
'RURAL';
COD_GRUPOEVAL|COD_GRUPOAPLI
672668|652162

-- CONCEPTOS A GENERAR POR EL PLAN DE DESCUENTO 'RURAL', A PARTIR DE LOS CONCEPTOS


9114 Y 9123.
SELECT cod_concepto, cod_conrel DESCUENTO_A_GENERAR FROM FAD_CONCAPLI WHERE
COD_GRUPO = 652162;

COD_CONCEPTO|DESCUENTO_A_GENERAR
9114|20186
9123|20186

-- NUM_ABONADO QUE TIENE EL PLAN REPORTADO


select NUM_ABONADO, COD_CICLFACT, COD_PLANDESC
from gat_plandescabo
where cod_cliente = 24780750
and cod_ciclfact = 200119;

NUM_ABONADO|COD_CICLFACT|COD_PLANDESC
54883924|200119|RURAL

-- NO EXISTEN LOS CONCEPTOS 9114 NI 9123 EN EL ABONADO = 54883924


-- POR LO TANTO NO SE APLICA EL DESCUENTO 'RURAL'
select *
from fa_histconc_200119
where ind_ordentotal = (select ind_ordentotal
from fa_histdocu
where cod_cliente = 24780750
and cod_ciclfact = 200119)
and num_abonado = 54883924
AND COD_CONCEPTO IN (9114, 9123)

En resumen, no existe error, ya que, segun configuracion, est� bien que no se haya
aplicado este descuento.
Favor cerrar incidencia. Saludos.

Atte
Soporte Facturacion N3

También podría gustarte