Skip to content

Commit a61de5c

Browse files
Cesaciones reports
1 parent ac6a9d2 commit a61de5c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Funcionalidades/GD/Cesaciones.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,13 @@ export function useCesaciones(CesacionesSvc: CesacionesService, CesacionCancelad
488488
const loadToReport = React.useCallback(async (from: string, to: string, EnviadoPor?: string, cargo?: string, empresa?: string, ciudad?: string) => {
489489
setLoading(true); setError(null);
490490
const filters: string[] = [];
491-
filters.push(`fields/Created ge '${from}T00:00:00Z' and fields/Created le '${to}T23:59:59Z'`)
491+
filters.push(`fields/FechaIngreso ge '${from}T00:00:00Z' and fields/FechaIngreso le '${to}T23:59:59Z'`)
492492

493493
if(EnviadoPor){
494494
filters.push(`fields/Reportadopor ge '${EnviadoPor}'`)
495495
}
496496

497-
if(cargo){
497+
if(cargo){
498498
filters.push(`fields/Cargo ge '${cargo}'`)
499499
}
500500

src/utils/exportExcel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ export async function exportCesacionesToExcel(
239239
"Correo electrónico del seleccionado": row.Correoelectronico ?? "N/A",
240240
Ciudad: row.Ciudad ?? "N/A",
241241
"% Completación": pct === undefined ? "N/A" : `${pct.toFixed(2)}%`,
242+
"Fecha de ingreso": toISODateFlex(row.FechaIngreso)
242243
};
243244
});
244245

0 commit comments

Comments
 (0)