Feature: Added ability to change / choose pax once the table is running.

This commit is contained in:
Amritanshu Agrawal 2021-04-09 09:33:53 +05:30
parent 4448869652
commit 4e827c2bd0
2 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,8 @@
</ng-container>
<ng-container matColumnDef="table-details">
<mat-header-cell *matHeaderCellDef class="deep-purple-50 bold right-align"
>{{ bs.bill.table.name }} / {{ bs.bill.pax }} /
><button>Table: {{ bs.bill.table.name }}</button> /
<button (click)="choosePax()">{{ bs.bill.pax }} Pax</button> /
{{ bs.bill.customer?.name }}</mat-header-cell
>
</ng-container>

View File

@ -55,6 +55,10 @@ export class BillsComponent implements OnInit {
if (this.bs.bill.id || this.bs.bill.customer) {
return;
}
this.choosePax();
}
choosePax(): void {
const dialogRef = this.dialog.open(PaxComponent, {
// width: '750px',
data: this.bs.bill.pax,