now all ep operation verify the ticket
This commit is contained in:
Generated
+1502
-1629
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -35,7 +35,7 @@
|
||||
"passport-jwt": "^4.0.1",
|
||||
"reflect-metadata": "^0.2.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"typeorm": "^0.3.26"
|
||||
"typeorm": "^0.3.28"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.2.0",
|
||||
|
||||
@@ -23,7 +23,7 @@ export class OperationsService {
|
||||
private readonly userService: UserService,
|
||||
private readonly reciboService: ReciboService,
|
||||
private readonly periodoService: PeriodoService,
|
||||
) {}
|
||||
) { }
|
||||
|
||||
async chargePrint(data: chargePrintDto, id_usuario: number) {
|
||||
const { monto, id_cuenta, id_servicio, numero_hojas } = data;
|
||||
@@ -119,6 +119,12 @@ export class OperationsService {
|
||||
async addTime(data, id_usuario: number) {
|
||||
const { monto, id_cuenta, idPlataforma, folio_recibo, fecha_recibo } = data;
|
||||
|
||||
const ticket = await this.reciboService.findOne(folio_recibo);
|
||||
|
||||
if (ticket) {
|
||||
throw new BadRequestException('Ticket ya existente');
|
||||
}
|
||||
|
||||
const studentRegister = await this.alumnoInscritoService.findRegister(
|
||||
id_cuenta,
|
||||
idPlataforma,
|
||||
@@ -182,6 +188,12 @@ export class OperationsService {
|
||||
realizo_pago,
|
||||
} = data;
|
||||
|
||||
const ticket = await this.reciboService.findOne(folio_recibo);
|
||||
|
||||
if (ticket) {
|
||||
throw new BadRequestException('Ticket ya existente');
|
||||
}
|
||||
|
||||
await this.alumnoInscritoService.findNotRegister(id_cuenta, id_plataforma);
|
||||
|
||||
const queryRunner = this.dataSource.createQueryRunner();
|
||||
|
||||
Reference in New Issue
Block a user