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:
@ -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 = '';
|
||||
|
||||
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user