agregar detalle servicio

This commit is contained in:
Andres2908
2022-03-24 14:17:56 -06:00
parent f8350e3961
commit 3d0043cbc1
2 changed files with 27 additions and 3 deletions
@@ -1,11 +1,14 @@
const moment = require('moment');
const fs = require('fs');
const { usuarioInscrito, agregarRecibo } = require('../../config/mariadb.conf');
const {
usuarioInscrito,
agregarRecibo,
agregarDetalleServicio,
} = require('../../config/mariadb.conf');
const {
validarNumeroEntero,
validarNumero,
validarNumeroCuenta,
validarFecha,
} = require('../../helper/validar');
const { eliminarArchivo } = require('../../helper/helper');
const gmail = require('../../helper/gmail');
@@ -72,6 +75,7 @@ const inscripcion = async (body, file) => {
moment(fechaTicket).format('L'),
numeroCuenta
);
agregarDetalleServicio(monto, numeroCuenta);
return gmail(correo.subject, email, correo.msj);
})
.then((res) => ({