Commit f52b8fb0ee72da1a0e85f3c0de580966931bac51

Authored by Marcelo Puebla
1 parent c4375fde73
Exists in master

Rollback

src/app/components/confirmacion-carrito/confirmacion-carrito.component.html
... ... @@ -50,7 +50,7 @@
50 50 <div *ngIf="producto.tieneSinonimos">
51 51 <p *ngFor="let p of producto.productos" class="h6 text-left m-0">
52 52 <small>
53   - - {{p.cantidad}} {{p.DET_LAR}}
  53 + - {{p.cantidad * producto.cantidad}} {{p.DET_LAR}}
54 54 </small>
55 55 </p>
56 56 </div>
src/app/components/sidebar/sidebar.component.ts
... ... @@ -56,11 +56,6 @@ export class SidebarComponent implements OnInit {
56 56 aumentarCantidad(producto: Producto) {
57 57  
58 58 if (producto.cantidad < this.cantMax) {
59   - if (producto.PRO) {
60   - producto.productos.forEach(promoProducto => {
61   - promoProducto.cantidad++;
62   - })
63   - }
64 59 producto.cantidad++;
65 60 this.cantTotal++
66 61 }
... ... @@ -69,11 +64,6 @@ export class SidebarComponent implements OnInit {
69 64 restarCantidad(producto: Producto) {
70 65  
71 66 if (producto.cantidad > this.cantMin) {
72   - if (producto.PRO) {
73   - producto.productos.forEach(promoProducto => {
74   - promoProducto.cantidad--;
75   - })
76   - }
77 67 producto.cantidad--;
78 68 this.cantTotal--;
79 69 }