Commit ccb7ccfd458c36855573783d3d1bd6c283e8430e
1 parent
72ecc038ef
Exists in
master
and in
1 other branch
fix límite articulos al escanear
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
src/app/components/inicio/inicio.component.ts
... | ... | @@ -79,7 +79,7 @@ export class InicioComponent implements OnInit, AfterViewInit { |
79 | 79 | |
80 | 80 | if (res.length === 0) { |
81 | 81 | |
82 | - this.productoAcargar.cantidad = 1; | |
82 | + this.productoAcargar.cantidad ? false : this.productoAcargar.cantidad = 1; | |
83 | 83 | this.productoService.setProductos(this.productoAcargar); |
84 | 84 | this.productoAcargar = this.productoService.productoAcargar = undefined; |
85 | 85 | } else { |
src/app/components/sidebar/sidebar.component.ts