token y cambios al reporte

This commit is contained in:
Andres2908
2022-02-22 16:31:40 -06:00
parent 34a741bd41
commit 0a9ae79747
9 changed files with 58 additions and 35 deletions
+8 -5
View File
@@ -29,13 +29,15 @@ const reporte = async (body) => {
],
})
.then(async (res) => {
if (body.tipo) {
if (body.tipo === 'CSV') {
for (let i = 0; i < res.length; i++) {
data.push({
numeroCuenta: res[i].Usuario.numeroCuenta,
idArea: res[i].idArea,
hizoPago: res[i].hizoPago,
fechaInscripcion: moment(res[i].fechaInscripcion).format('L'),
numero_cuenta: res[i].Usuario.numeroCuenta,
id_area: res[i].idArea,
folio: res[i].folio,
monto: res[i].monto,
hizo_pago: res[i].hizoPago,
fecha_inscripcion: moment(res[i].fechaInscripcion).format('L'),
});
}
} else {
@@ -46,6 +48,7 @@ const reporte = async (body) => {
confirmacion: res[i].confirmacion,
folio: res[i].folio,
monto: res[i].monto,
hizoPago: res[i].hizoPago,
fechaInscripcion: moment(res[i].fechaInscripcion).format('L'),
idArea: res[i].idArea,
});