Blacked and isorted the python files

Prettied and eslinted the typescript/html files
This commit is contained in:
2020-10-11 10:56:29 +05:30
parent b31db593c2
commit d677cfb1ea
505 changed files with 7560 additions and 5650 deletions

View File

@ -1,34 +1,33 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
import { Table } from '../../core/table';
@Component({
selector: 'app-running-tables',
templateUrl: './running-tables.component.html',
styleUrls: ['./running-tables.component.css']
styleUrls: ['./running-tables.component.css'],
})
export class RunningTablesComponent implements OnInit {
list: Table[];
constructor(private router: Router, private route: ActivatedRoute) {
}
constructor(private router: Router, private route: ActivatedRoute) {}
ngOnInit() {
this.route.data
.subscribe((data: { list: Table[] }) => {
this.list = data.list;
});
this.route.data.subscribe((data: { list: Table[] }) => {
this.list = data.list;
});
}
navigateToBill(table: Table): void {
const qp = {table: table.id};
const qp = { table: table.id };
if (table.voucherId) {
qp['voucher'] = table.voucherId;
qp.voucher = table.voucherId;
}
const navigationExtras: NavigationExtras = {
queryParams: qp,
queryParamsHandling: 'merge',
preserveFragment: true
preserveFragment: true,
};
this.router.navigate(['/sales', 'bill'], navigationExtras);
}