Skip to content

Commit cdffe3c

Browse files
Filtros
1 parent 5347ce0 commit cdffe3c

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Funcionalidades/GD/Cesaciones.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function useCesaciones(CesacionesSvc: CesacionesService, CesacionCancelad
113113
if (estado === "proceso") filters.push(`fields/Estado eq 'En proceso'`);
114114
if (estado === "finalizado") filters.push(`fields/Estado eq 'Completado'`);
115115

116-
if (range.from && range.to && range.from < range.to) {
116+
if (range.from && range.to && range.from <= range.to) {
117117
filters.push(`fields/FechaIngreso ge '${range.from}T00:00:00Z'`);
118118
filters.push(`fields/FechaIngreso le '${range.to}T23:59:59Z'`);
119119
}

src/Funcionalidades/GD/Contratos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export function useContratos(ContratosSvc: ContratosService, novedadCanceladaSvc
161161
if (estado === "proceso") filters.push(`fields/Estado eq 'En proceso'`);
162162
if (estado === "finalizado") filters.push(`fields/Estado eq 'Completado'`);
163163

164-
if (range.from && range.to && range.from < range.to) {
164+
if (range.from && range.to && range.from <= range.to) {
165165
filters.push(`fields/FECHA_x0020_REQUERIDA_x0020_PARA0 ge '${range.from}T00:00:00Z'`);
166166
filters.push(`fields/FECHA_x0020_REQUERIDA_x0020_PARA0 le '${range.to}T23:59:59Z'`);
167167
}

src/Funcionalidades/GD/HabeasData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function useHabeasData(HabeasDataSvc: HabeasDataService) {
7474
const buildServerFilter = React.useCallback((): GetAllOpts => {
7575
const filters: string[] = [];
7676

77-
if (range.from && range.to && range.from < range.to) {
77+
if (range.from && range.to && range.from <= range.to) {
7878
filters.push(`fields/Created ge '${range.from}T00:00:00Z'`);
7979
filters.push(`fields/Created le '${range.to}T23:59:59Z'`);
8080
}

src/Funcionalidades/GD/Promocion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function usePromocion(PromocionesSvc: PromocionesService, PromocionCancel
128128
const buildServerFilter = React.useCallback((): GetAllOpts => {
129129
const filters: string[] = [];
130130

131-
if (range.from && range.to && range.from < range.to) {
131+
if (range.from && range.to && range.from <= range.to) {
132132
filters.push(`fields/FechaIngreso ge '${range.from}T00:00:00Z'`);
133133
filters.push(`fields/FechaIngreso le '${range.to}T23:59:59Z'`);
134134
}

src/Funcionalidades/GD/Retail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function useRetail(RetailSvc: RetailService, retailCanceladosSvc?: Retail
105105
const buildServerFilter = React.useCallback((): GetAllOpts => {
106106
const filters: string[] = [];
107107

108-
if (range.from && range.to && range.from < range.to) {
108+
if (range.from && range.to && range.from <= range.to) {
109109
filters.push(`fields/FechaIngreso ge '${range.from}T00:00:00Z'`);
110110
filters.push(`fields/FechaIngreso le '${range.to}T23:59:59Z'`);
111111
}

0 commit comments

Comments
 (0)