Commit da32f0d613d31a6b990a19aa140d47d5ce9ba935
Exists in
develop
Merge branch 'develop' into 'develop'
Develop See merge request !26
Showing
2 changed files
Show diff stats
src/app/modules/pedidos-salientes/pedidos-salientes.component.html
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | *ngFor="let pedido of pedidosPendientes; let i = index" |
19 | 19 | [hidden]="i == 0 || i > 4" |
20 | 20 | class="font-weight-bold mb-2 text-muted"> |
21 | - <h1 class="display-4">{{rellenar(pedido.id.toString().slice(1), 2)}}</h1> | |
21 | + <h1 class="display-4">{{rellenar(pedido.id.toString().slice(1), 3)}}</h1> | |
22 | 22 | </div> |
23 | 23 | </div> |
24 | 24 | </div> |
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | <h5 class="pt-3">LISTO PARA</h5> |
28 | 28 | <h3 class="font-weight-bold text-primary">retirar</h3> |
29 | 29 | <div *ngIf="pedidoFinalizado.length"> |
30 | - <h1 class="display-1 mt-4 text-primary mb-0">{{rellenar(pedidoFinalizado[0].id.toString().slice(1), 2)}}</h1> | |
30 | + <h1 class="display-1 mt-4 text-primary mb-0">{{rellenar(pedidoFinalizado[0].id.toString().slice(1), 3)}}</h1> | |
31 | 31 | <hr class="line mt-0"> |
32 | 32 | </div> |
33 | 33 | <h3 class="font-weight-bold text-info mt-4">¡Que lo disfrutes!</h3> |
src/app/services/articulo/articulo.service.ts
... | ... | @@ -44,8 +44,8 @@ export class ArticuloService { |
44 | 44 | setArticulo(articulo: IArticulo) { |
45 | 45 | for (const articuloCarrito of this.carrito) { |
46 | 46 | if (articuloCarrito.id === articulo.id) { |
47 | - if (articulo.PRO) break; | |
48 | 47 | articuloCarrito.cantidad++; |
48 | + this.calcularTotal(); | |
49 | 49 | return; |
50 | 50 | } |
51 | 51 | } |