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

This commit is contained in:
2023-03-06 21:04:44 +05:30
parent c5eaeb1497
commit 516b22ed1c
15 changed files with 66 additions and 42 deletions

View File

@ -2,15 +2,15 @@ export class DiscountItem {
id: string;
name: string;
discount: number;
discountLimit: number;
customerDiscount: number;
limit: number;
customer: number;
public constructor(init?: Partial<DiscountItem>) {
this.id = '';
this.name = '';
this.discount = 0;
this.discountLimit = 0;
this.customerDiscount = 0;
this.limit = 0;
this.customer = 0;
Object.assign(this, init);
}
}