Feature: Added a column called print in bill to the table customer.
This will prevent printing all customer's names and phone numbers in the bill in case of simple walkins. This is a breaking change as there is schema changes in the database. It also bolds the customers who are to be printed in the bill in the running tables list.
This commit is contained in:
@ -5,6 +5,7 @@ export class Customer {
|
||||
name: string;
|
||||
phone: string;
|
||||
address: string;
|
||||
printInBill: boolean;
|
||||
discounts: CustomerDiscount[];
|
||||
|
||||
public constructor(init?: Partial<Customer>) {
|
||||
@ -12,6 +13,7 @@ export class Customer {
|
||||
this.name = '';
|
||||
this.phone = '';
|
||||
this.address = '';
|
||||
this.printInBill = false;
|
||||
this.discounts = [];
|
||||
Object.assign(this, init);
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ export class Table {
|
||||
status?: string;
|
||||
pax?: number;
|
||||
guest?: string;
|
||||
bold?: boolean;
|
||||
date?: string;
|
||||
amount?: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user