From f52b8fb0ee72da1a0e85f3c0de580966931bac51 Mon Sep 17 00:00:00 2001 From: mpuebla Date: Tue, 10 Sep 2019 17:25:28 -0300 Subject: [PATCH] Rollback --- .../confirmacion-carrito/confirmacion-carrito.component.html | 2 +- src/app/components/sidebar/sidebar.component.ts | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/app/components/confirmacion-carrito/confirmacion-carrito.component.html b/src/app/components/confirmacion-carrito/confirmacion-carrito.component.html index 427b1bd..9fc1e04 100644 --- a/src/app/components/confirmacion-carrito/confirmacion-carrito.component.html +++ b/src/app/components/confirmacion-carrito/confirmacion-carrito.component.html @@ -50,7 +50,7 @@

- - {{p.cantidad}} {{p.DET_LAR}} + - {{p.cantidad * producto.cantidad}} {{p.DET_LAR}}

diff --git a/src/app/components/sidebar/sidebar.component.ts b/src/app/components/sidebar/sidebar.component.ts index 2f27a7b..12066bd 100644 --- a/src/app/components/sidebar/sidebar.component.ts +++ b/src/app/components/sidebar/sidebar.component.ts @@ -56,11 +56,6 @@ export class SidebarComponent implements OnInit { aumentarCantidad(producto: Producto) { if (producto.cantidad < this.cantMax) { - if (producto.PRO) { - producto.productos.forEach(promoProducto => { - promoProducto.cantidad++; - }) - } producto.cantidad++; this.cantTotal++ } @@ -69,11 +64,6 @@ export class SidebarComponent implements OnInit { restarCantidad(producto: Producto) { if (producto.cantidad > this.cantMin) { - if (producto.PRO) { - producto.productos.forEach(promoProducto => { - promoProducto.cantidad--; - }) - } producto.cantidad--; this.cantTotal--; } -- 1.9.1