Chore: Model relationships updated to make them simpler Chore: Bill printing majorly refactored for it Due to the sheer depth of the changes. There can be showstoppers. Please test it carefully
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<mat-card>
|
|
<mat-card-header>
|
|
<mat-card-title>Running Tables</mat-card-title>
|
|
</mat-card-header>
|
|
<mat-card-content>
|
|
<div class="flex flex-row flex-wrap -mr-5 -mb-5">
|
|
<mat-card
|
|
class="flex flex-col square-button mr-5, mb-5"
|
|
matRipple
|
|
*ngFor="let table of list"
|
|
(click)="navigateToBill(table)"
|
|
[class.running]="table.status === 'running'"
|
|
[class.printed]="table.status === 'printed'"
|
|
>
|
|
<h3 class="item-name">{{ table.name }}</h3>
|
|
<mat-card-subtitle class="center" [class.bold]="table.bold">{{
|
|
table.guest
|
|
}}</mat-card-subtitle>
|
|
<span class="center"
|
|
>{{ table.pax ?? '-' }} / {{ table.seats }} / {{ table.section?.name }}</span
|
|
>
|
|
<span class="center" *ngIf="table.date">{{ table.date }}</span>
|
|
<span class="center" *ngIf="table.amount">{{ table.amount | currency : 'INR' }}</span>
|
|
</mat-card>
|
|
<mat-card
|
|
class="flex flex-col square-button mr-5, mb-5 open-bill"
|
|
matRipple
|
|
(click)="openBill()"
|
|
>
|
|
<h3 class="item-name">Open Bill</h3>
|
|
</mat-card>
|
|
</div>
|
|
</mat-card-content>
|
|
</mat-card>
|