From 662f19591880c64c16f4ee3e981e47bc78154b8e Mon Sep 17 00:00:00 2001 From: puma99 Date: Fri, 15 Dec 2023 11:41:09 -0600 Subject: [PATCH] nuvos tipos de carrito locker --- src/prestamo/prestamo.service.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) => {