Feature: Allow bills without items so that tables can be seated from the guest book.

Feature: Allow guest book entries to be associated with running vouchers
Feature: Allow removing customer from voucher
This commit is contained in:
2023-03-24 09:09:13 +05:30
parent 1b4c26733d
commit 56ae7500cc
7 changed files with 64 additions and 25 deletions

View File

@ -18,7 +18,7 @@ export class Bill {
kotId: string;
billId: string;
table: Table;
customer?: { id: string; name: string };
customer: { id: string; name: string } | null;
guest: GuestBook;
reason: string;
voucherType: VoucherType;
@ -37,6 +37,7 @@ export class Bill {
this.billId = '';
this.kotId = '';
this.table = new Table();
this.customer = null;
this.guest = new GuestBook();
// this.settlements = [];
this.reason = '';

View File

@ -83,9 +83,10 @@ export class BillsComponent implements OnInit {
dialogRef.afterClosed().subscribe((result: boolean | Customer) => {
if (!result) {
return;
this.bs.bill.customer = null;
} else {
this.bs.bill.customer = result as Customer;
}
this.bs.bill.customer = result as Customer;
});
}