reportes e inscripcion

This commit is contained in:
Andres2908
2022-02-17 00:54:55 -06:00
parent 30700e4e76
commit 458be977d3
5 changed files with 23 additions and 15 deletions
+1
View File
@@ -34,6 +34,7 @@ const reporte = async (body) => {
data.push({
numeroCuenta: res[i].Usuario.numeroCuenta,
idArea: res[i].idArea,
hizoPago: res[i].hizoPago,
fechaInscripcion: moment(res[i].fechaInscripcion).format('L'),
});
}
@@ -27,18 +27,20 @@ const inscripcion = async (body, file) => {
if (file) {
return Inscripcion.create({
idUsuario,
idArea,
folio,
monto: body.monto,
idArea,
fechaInscripcion: ahora.format(),
fechaTicket: body.fechaTicket,
hizoPago: true,
rutaTicket: file.path,
extension: file.mimetype.split('/')[1],
fechaInscripcion: ahora.format(),
fechaTicket: body.fechaTicket,
});
} else {
return Inscripcion.create({
idUsuario,
idArea,
hizoPago: false,
fechaInscripcion: ahora.format(),
});
}