Refactored customer discount and choose discount. They were using the same schema unnecessarily which was leading to confusion.

This commit is contained in:
tanshu committed 2023-03-06 21:04:44 +05:30
1 parent c5eaeb1497
commit 516b22ed1c
15 files changed
+66 -42

No files matched your search

+4 -2
View File
@@ -1,12 +1,14 @@
export class CustomerDiscount {
id: string;
name: string;
discount: number | null;
discount: number;
limit: number;
public constructor(init?: Partial<CustomerDiscount>) {
this.id = '';
this.name = '';
this.discount = null;
this.discount = 0;
this.limit = 1;
Object.assign(this, init);
}
}