diff --git a/src/prestamo/prestamo.service.ts b/src/prestamo/prestamo.service.ts index f4cda48..f52ec7c 100644 --- a/src/prestamo/prestamo.service.ts +++ b/src/prestamo/prestamo.service.ts @@ -273,7 +273,9 @@ export class PrestamoService { // Si es locker if ( prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 4 || - prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 5 + prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 5|| + prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 7|| + prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 8 ) // Creamos un passcode return this.passcodeService.create(prestamo).then((passcode) => { @@ -750,7 +752,9 @@ export class PrestamoService { // Si es locker if ( prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 4 || - prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 5 + prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 5|| + prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 7|| + prestamo.equipo.carrito.tipoCarrito.id_tipo_carrito === 8 ) // Buscamos el passcode y se lo agregamos al préstamo return this.passcodeService.findByPrestamo(prestamo).then((passcode) => {