- VERSION 5.09.13

- Corrige que no cargaba el municipio en "Cliente", y entonces se quedaba eldato del anterior.
This commit is contained in:
2025-09-15 12:40:50 -06:00
parent 5f2b7d6efb
commit 62ff017400
4 changed files with 11 additions and 4 deletions

View File

@@ -220,7 +220,13 @@ Sub MapFragment1_Ready
' c3 = skmt.ExecQuery($"Select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_SECUENCIA from kmt_info
' where CAT_CL_CODIGO Not like 'N%' and CAT_CL_LAT is not null and CAT_CL_LONG is not null
' And CAT_CL_LAT <> 0 And CAT_CL_LONG <> 0 and CAT_CL_ESTATUS = 'Activo' and HV_MOTIVO = 'CERRADO_XXXXX'"$)
c3 = skmt.ExecQuery($"Select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_SECUENCIA from kmt_info where cat_cl_estatus = 'Inactivo'"$)
c3 = skmt.ExecQuery($"Select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_SECUENCIA from kmt_info
where cat_cl_estatus = 'Inactivo'
and date( -- Para traer la fecha del string
substr(cat_cl_fecha_captura, 7, 4) || '-' || -- año
substr(cat_cl_fecha_captura, 4, 2) || '-' || -- mes
substr(cat_cl_fecha_captura, 1, 2) -- día
) >= date('now', '-2 months')"$)
Log($"Select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_SECUENCIA from kmt_info where CAT_CL_CODIGO Not like 'N%' and CAT_CL_SECUENCIA = 0 and CAT_CL_LAT is not null and CAT_CL_LONG is not null And CAT_CL_LAT <> 0 And CAT_CL_LONG <> 0 and CAT_CL_ESTATUS <> 'Inactivo'"$)
Log($"============== Rojo Resultados = ${c3.RowCount}"$)
For i = 0 To c3.RowCount -1