Commit 6937133101a9ff9cbf5fc77bdf8a42e494867eba

Authored by Benjamin Rodriguez
1 parent 9a1421ccfc

cancelar-compra y timeout

src/app/app.component.ts
... ... @@ -10,7 +10,7 @@ export class AppComponent implements OnInit {
10 10 title = 'autoservicio-axion';
11 11 timerReposo: any;
12 12  
13   - constructor (
  13 + constructor(
14 14 private router: Router,
15 15 ) { }
16 16  
... ... @@ -21,9 +21,7 @@ export class AppComponent implements OnInit {
21 21 window.location.href !== 'http://localhost:4206/#/pedidos-salientes'
22 22 ) {
23 23 this.startTimeOutInactividad();
24   - } else {
25   - console.log(window.location.href)
26   - }
  24 + };
27 25 }
28 26  
29 27 restartTimer() {
src/app/modules/comanda/comanda.component.ts
... ... @@ -52,7 +52,7 @@ export class ComandaComponent implements OnInit {
52 52 }
53 53  
54 54 updateComanda(comanda: IComanda, estadoNuevo: number, observacionNueva: string) {
55   - let data = {
  55 + const data = {
56 56 idComanda: comanda.id,
57 57 estado: estadoNuevo,
58 58 observacion: observacionNueva,
src/app/services/articulo/articulo.service.ts
... ... @@ -35,7 +35,7 @@ export class ArticuloService {
35 35 }
36 36  
37 37 calcularTotal() {
38   - this.subTotal=0
  38 + this.subTotal = 0;
39 39 this.carrito.forEach(articulo => {
40 40 this.subTotal += (articulo.PreVen * articulo.cantidad);
41 41 });