diff --git a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/ControlGestion.Reporting.rptproj b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/ControlGestion.Reporting.rptproj
index 1868ed211..728ee7f11 100644
--- a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/ControlGestion.Reporting.rptproj
+++ b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/ControlGestion.Reporting.rptproj
@@ -52,6 +52,9 @@
+
+
+
@@ -62,6 +65,7 @@
+
diff --git a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/RRecaudacion3001.rdl b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/RRecaudacion3001.rdl
index d359a6be0..907a9194b 100644
--- a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/RRecaudacion3001.rdl
+++ b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/RRecaudacion3001.rdl
@@ -2,6 +2,41 @@
Segoe UI
0
+
+
+
+ dsRecaudacion3001
+
+
+ =Parameters!p_f_inicio.Value
+ true
+
+
+ =Parameters!p_f_final.Value
+ true
+
+
+
+
+
+ COD_RECAUDADOR
+ System.String
+
+
+ RECIBOS
+ System.Double
+
+
+ MONTO
+ System.Double
+
+
+ COMISION
+ System.Double
+
+
+
+
@@ -44,8 +79,10 @@
-
-
+ =Sum(Fields!RECIBOS.Value)
+
@@ -74,8 +111,10 @@
-
-
+ =Sum(Fields!MONTO.Value)
+
@@ -83,9 +122,9 @@
Textbox17
1.12028in
- 2.95361in
+ 3.32861in
0.25in
- 1in
+ 1.14584in
2
@@ -113,9 +154,9 @@
Textbox18
1.12028in
- 4.155in
+ 4.53in
0.25in
- 1in
+ 1.14584in
3
+
+
+
+
+ 1in
+
+
+ 1.70896in
+
+
+ 1.17708in
+
+
+ 1.25in
+
+
+
+
+ 0.25in
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox61
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Cantidad de Recibos
+
+
+
+
+
+
+ Textbox58
+
+
+ DarkBlue
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Monto Recibos
+
+
+
+
+
+
+ Textbox11
+
+
+ DarkBlue
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Monto Comision
+
+
+
+
+
+
+ Textbox13
+
+
+ DarkBlue
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.25in
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!COD_RECAUDADOR.Value
+
+
+
+
+
+
+ COD_RECAUDADOR
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!RECIBOS.Value
+
+
+
+
+
+
+ RECIBOS
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!MONTO.Value
+
+
+
+
+
+
+ MONTO
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!COMISION.Value
+
+
+
+
+
+
+ COMISION
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.25in
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox63
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox60
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox23
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox24
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataSet1
+ 0.12375in
+ 0.53979in
+ 0.75in
+ 5.13605in
+ 4
+
+
+
+
2in
@@ -259,9 +772,9 @@
Textbox4
0.57167in
- 3.50222in
+ 3.37722in
0.25in
- 0.41667in
+ 0.84723in
3
@@ -323,7 +838,7 @@
0.57167in
4.14111in
0.25in
- 0.54167in
+ 0.875in
5
+
+
+
+
+ 1.27854cm
+ 0.02328cm
+ 0cm
+ 17.71354cm
+ 1
+
+
+
+
+
+ true
+ true
+
+
+
+
+ REMESA REC:
+
+
+
+
+
+
+ Textbox10
+ 0.37896cm
+ 0.89799cm
+ 0.6cm
+ 2.5cm
+ 2
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox11
+ 0.37896cm
+ 3.59516cm
+ 0.6cm
+ 2.19604cm
+ 3
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ RECAUDADOR
+
+
+
+
+
+
+ Textbox10
+ 0.37896cm
+ 8.97504cm
+ 0.6cm
+ 2.5cm
+ 4
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox11
+ 0.37896cm
+ 11.67221cm
+ 0.6cm
+ 2.19604cm
+ 5
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+ 2.83263cm
+
+
+ 4.06166cm
+
+
+ 3.10854cm
+
+
+ 3.14696cm
+
+
+ 2.5cm
+
+
+
+
+ 0.6cm
+
+
+
+
+ true
+ true
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ Servicio
+
+
+
+
+
+
+ Textbox14
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Fecha
+
+
+
+
+
+
+
+
+ Facturacion
+
+
+
+
+
+
+ Textbox16
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Monto
+
+
+
+
+
+
+
+
+ del Pago
+
+
+
+
+
+
+ Textbox18
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Monto
+
+
+
+
+
+
+
+
+ Comision
+
+
+
+
+
+
+ Textbox22
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Comision Calculada
+
+
+
+
+
+
+ Textbox20
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.6cm
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!NUMERO_SERVICIO.Value
+
+
+
+
+
+
+ NUMERO_SERVICIO
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!FECHA_FACTURACION.Value
+
+
+
+
+
+
+ FECHA_FACTURACION
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!MONTO.Value
+
+
+
+
+
+
+ MONTO
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!MONTO_COMISION.Value
+
+
+
+
+
+
+ MONTO_COMISION
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!COM_CALC.Value
+
+
+
+
+
+
+ COM_CALC
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ After
+
+
+
+
+
+
+ dsRevComis
+ 1.70188cm
+ 0.81703cm
+ 1.2cm
+ 15.64979cm
+ 6
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Cantidad de Recibos
+
+
+
+
+
+
+ Textbox24
+ 4.53292cm
+ 0.81703cm
+ 0.6cm
+ 4.16688cm
+ 7
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox25
+ 4.53292cm
+ 5.26203cm
+ 0.6cm
+ 0.52917cm
+ 8
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ TOTALES:
+
+
+
+
+
+
+ Textbox24
+ 4.53292cm
+ 6.65298cm
+ 0.6cm
+ 1.94438cm
+ 9
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox27
+ 4.53292cm
+ 8.65754cm
+ 0.6cm
+ 2.52646cm
+ 10
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox27
+ 4.53292cm
+ 11.74591cm
+ 0.6cm
+ 2.52646cm
+ 11
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ 4.07292in
+
+
+ 7.32675in
+
+
+ 3.87766cm
+ true
+ true
+
+
+ true
+ true
+
+
+
+
+ INSTITUTO COSTARRICENSE DE ACUEDUCTOS Y ALCANTARILLADOS
+
+
+
+
+
+
+ Textbox1
+ 0.4276cm
+ 1.45362cm
+ 0.6cm
+ 13.48021cm
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ -- Reporte de concilacion de Recibos --
+
+
+
+
+
+
+ Textbox2
+ 1.20399cm
+ 3.3057cm
+ 0.6cm
+ 9.40562cm
+ 1
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Fecha Edicion:
+
+
+
+ =Globals!ExecutionTime
+
+
+
+
+
+
+ Textbox3
+ 2.4649cm
+ 0.89799cm
+ 0.6cm
+ 5.75438cm
+ 2
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Pagina
+
+
+
+ =Globals!PageNumber
+
+
+
+
+
+
+ Textbox7
+ 2.35162cm
+ 11.69141cm
+ 0.6cm
+ 1.93715cm
+ 3
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ de
+
+
+
+
+
+
+
+ =Globals!OverallTotalPages
+
+
+
+
+
+
+ Textbox8
+ 2.35162cm
+ 13.66383cm
+ 0.6cm
+ 2.80299cm
+ 4
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 29.7cm
+ 21cm
+ 2cm
+ 2cm
+ 2cm
+ 2cm
+ 0.13cm
+
+
+
+
+
+
+ String
+
+
+ 1945850
+
+
+ Remesa:
+
+
+
+
+ 4
+ 2
+
+
+ 0
+ 0
+ p_remesa
+
+
+
+
+ Cm
+ 3667151b-7a07-4a26-9cde-112ed8d29445
+
\ No newline at end of file
diff --git a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRecaudacion.rsd b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRecaudacion.rsd
index aae0bc7e7..98669fc39 100644
--- a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRecaudacion.rsd
+++ b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRecaudacion.rsd
@@ -3,17 +3,24 @@
dsOracle
+
+
+ false
+ false
+ false
+ true
+
+
select distinct a.cod_recaudador, fecha_control fecha_contable,
decode(ltrim(rtrim(b.numero_deposito)), '',a.remesa, b.NUMERO_DEPOSITO) remesa,
sum(round(to_number(a.total_pagado) / 100,2)) monto,
sum(round(to_number(a.comision) / 100,2)) comision, b.monto_retencion
from mtx_archivos_recaudadores a, ptx_remesas_dep b
-where fecha_control between :p_f_inicio and :p_f_final
+where fecha_control between '01/01/2000' and '01/01/2022'
and a.cod_recaudador = decode(:p_recaudador,'TODOS',a.cod_recaudador,:p_recaudador)
and a.remesa = b.numero_remesa (+)
AND a.COD_RECAUDADOR = B.COD_RECAUDADOR(+)
-group by a.cod_recaudador, a.fecha_control, a.remesa, b.numero_deposito, b.monto_retencion
-
+group by a.cod_recaudador, a.fecha_control, a.remesa, b.numero_deposito, b.monto_retencion
diff --git a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRecaudacion3001.rsd b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRecaudacion3001.rsd
new file mode 100644
index 000000000..4c1e70098
--- /dev/null
+++ b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRecaudacion3001.rsd
@@ -0,0 +1,48 @@
+
+
+
+
+ dsOracle
+
+
+ false
+ false
+ false
+ true
+
+
+ false
+ false
+ false
+ true
+
+
+ select
+ a.cod_recaudador,
+ 1 recibos,
+ round(to_number(a.total_pagado) / 100,2) monto,
+ round(to_number(a.comision) / 100,2) comision
+from mtx_archivos_recaudadores a
+where
+ to_date(substr(a.fecha_contable,1,8),'ddmmyyyy') between :p_f_inicio and :p_f_final
+
+
+
+ COD_RECAUDADOR
+ System.String
+
+
+ RECIBOS
+ System.Double
+
+
+ MONTO
+ System.Double
+
+
+ COMISION
+ System.Double
+
+
+
+
\ No newline at end of file
diff --git a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRevComis.rsd b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRevComis.rsd
new file mode 100644
index 000000000..3a08b2df2
--- /dev/null
+++ b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/dsRevComis.rsd
@@ -0,0 +1,118 @@
+
+
+
+
+ dsOracle
+
+
+ false
+ false
+ false
+ true
+
+
+ select distinct
+ substr(a.numero_recibo,2,7) numero_servicio,
+ max(to_date(substr(a.numero_recibo,11,8),'ddmmyyyy')) fecha_facturacion,
+ a.remesa,
+ r.fila_cancelacion,
+ m.nombre_recaudador,
+ sum(r.monto_actualizado) monto,
+ to_number(a.no_autorizacion) autoriz_rec,
+ c.monto_comision,
+ round(to_Number(a.total_pagado) / 100,2) * 0.02 com_calc
+from mtx_archivos_recaudadores a,
+ ptx_recibos r,
+ mtx_recaudadores m,
+ ptx_cancelaciones c
+where to_number(a.no_autorizacion) = r.fila_cancelacion (+)
+ and a.remesa = :p_remesa
+ and a.cod_recaudador = m.cod_recaudador
+ and c.fila_cancelacion = r.fila_cancelacion
+ and c.fila_cancelacion = to_Number(a.no_autorizacion)
+ and c.numero_remesa = :p_remesa
+group by
+ substr(a.numero_recibo,2,7),
+ a.remesa,
+ to_number(a.no_autorizacion),
+ to_char(r.numero_servicio)||lpad(to_char(r.sec_nis),2,'0'),
+ r.fila_cancelacion,
+ m.nombre_recaudador,
+ to_number(a.no_autorizacion),
+ c.monto_comision,
+ round(to_Number(a.total_pagado) / 100,2) * 0.02
+having sum(r.monto_actualizado) < 35000
+UNION
+select distinct
+ substr(a.numero_recibo,2,7) numero_servicio,
+ max(to_date(substr(a.numero_recibo,11,8),'ddmmyyyy')) fecha_facturacion,
+ a.remesa,
+ r.fila_cancelacion,
+ m.nombre_recaudador,
+ sum(r.monto_actualizado) monto,
+ to_number(a.no_autorizacion) autoriz_rec,
+ c.monto_comision,
+ 700.00 com_calc
+from mtx_archivos_recaudadores a,
+ ptx_recibos r,
+ mtx_recaudadores m,
+ ptx_cancelaciones c
+where to_number(a.no_autorizacion) = r.fila_cancelacion (+)
+ and a.remesa = :p_remesa
+ and a.cod_recaudador = m.cod_recaudador
+ and c.fila_cancelacion = r.fila_cancelacion
+ and c.fila_cancelacion = to_Number(a.no_autorizacion)
+ and c.numero_remesa = :p_remesa
+group by
+ substr(a.numero_recibo,2,7),
+ a.remesa,
+ to_number(a.no_autorizacion),
+ to_char(r.numero_servicio)||lpad(to_char(r.sec_nis),2,'0'),
+ round(to_number(a.total_pagado) / 100,2),
+ r.fila_cancelacion,
+ m.nombre_recaudador,
+ to_number(a.no_autorizacion),
+ c.monto_comision
+having sum(r.monto_actualizado) >= 35000
+order by 1,2
+
+
+
+ NUMERO_SERVICIO
+ System.String
+
+
+ FECHA_FACTURACION
+ System.DateTime
+
+
+ REMESA
+ System.String
+
+
+ FILA_CANCELACION
+ System.Decimal
+
+
+ NOMBRE_RECAUDADOR
+ System.String
+
+
+ MONTO
+ System.Double
+
+
+ AUTORIZ_REC
+ System.Double
+
+
+ MONTO_COMISION
+ System.Decimal
+
+
+ COM_CALC
+ System.Double
+
+
+
+
\ No newline at end of file