Fix: Guestbook would not let you seat anyone who has any old bill.

Fix: Only create a new temporal product when there is some change in the data.
This commit is contained in:
2023-07-20 07:00:20 +05:30
parent 5534b3983d
commit 8b2d15b9e1
2 changed files with 18 additions and 1 deletions

View File

@ -58,7 +58,7 @@
mat-icon-button
[routerLink]="['/sales']"
[queryParams]="{ guest: row.id }"
*ngIf="!row.tableId && !row.voucherId"
*ngIf="row.status === 'old' || (!row.tableId && !row.voucherId)"
>
<mat-icon>chair</mat-icon>
</button>