Commit 102f90deae421ea16ea93a894ebd25f0a7595a68

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master(mpuebla)

See merge request !109
src/app/components/sidebar/sidebar.component.html
... ... @@ -9,7 +9,7 @@
9 9 <div class="overflow-scroll px-1 mb-1 w-100">
10 10 <!-- PRODUCTOS CARRITO -->
11 11 <div class="row m-0"
12   - *ngFor="let producto of productosCarrito">
  12 + *ngFor="let producto of productosCarrito; let i = index">
13 13 <div class="col p-0 my-1 bg-white border-0 rounded-sm">
14 14 <div class="row m-0">
15 15 <div class="col-6 pl-1 pr-0 my-auto">
src/app/components/sidebar/sidebar.component.ts
... ... @@ -73,7 +73,7 @@ export class SidebarComponent implements OnInit {
73 73  
74 74 this.cantTotal -= producto.cantidad;
75 75 this.total -= producto.PreVen * producto.cantidad;
76   - this.productosCarrito.reverse().splice(index, 1);
  76 + this.productosCarrito.splice(index, 1);
77 77 return;
78 78 }
79 79  
src/app/services/producto.service.ts
... ... @@ -51,7 +51,7 @@ export class ProductoService {
51 51 }
52 52 }
53 53  
54   - this.productos.push(producto);
  54 + this.productos.unshift(producto);
55 55 }
56 56  
57 57 getPromocionByCodigos(sector, codigo): Observable<any> {