Refactored customer discount and choose discount. They were using the same schema unnecessarily which was leading to confusion.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user