actualizacion de funciones
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
const moment = require('moment');
|
||||
const {
|
||||
validarNumeroEntero,
|
||||
validarNumeroCuenta,
|
||||
} = require('../../helper/validar');
|
||||
const {
|
||||
usuarioInscrito,
|
||||
agregarRecibo,
|
||||
agregarDetalleServicio,
|
||||
} = require('../../config/mariadb.conf');
|
||||
const { usuarioInscrito } = require('../../config/mariadb.conf');
|
||||
const dbPath = '../../db/tablas';
|
||||
const Inscripcion = require(`${dbPath}/Inscripcion`);
|
||||
const gmail = require('../../helper/gmail');
|
||||
@@ -17,8 +12,6 @@ const correoInscripcion = require('../../helper/correo');
|
||||
const validarTicket = async (body) => {
|
||||
const folio = validarNumeroEntero(body.folio, 'folio', true);
|
||||
const idArea = validarNumeroEntero(body.idArea, 'IDAREA', true);
|
||||
const monto = validarNumeroEntero(body.monto, 'monto', true);
|
||||
const fechaTicket = body.fechaTicket;
|
||||
|
||||
const numeroCuenta = validarNumeroCuenta(
|
||||
body.numeroCuenta,
|
||||
@@ -59,14 +52,7 @@ const validarTicket = async (body) => {
|
||||
email = `${numeroCuenta}@pcpuma.acatlan.unam.mx`;
|
||||
if (body.validacion === 1) {
|
||||
correo = correoInscripcion();
|
||||
// usuarioInscrito(numeroCuenta, idArea);
|
||||
// agregarRecibo(
|
||||
// folio,
|
||||
// monto,
|
||||
// moment(fechaTicket).format('L'),
|
||||
// numeroCuenta
|
||||
// );
|
||||
// agregarDetalleServicio(monto, numeroCuenta);
|
||||
usuarioInscrito(numeroCuenta, idArea);
|
||||
} else {
|
||||
correo = correoDeclinar();
|
||||
return Inscripcion.update(
|
||||
|
||||
Reference in New Issue
Block a user