Customer discount with prefill discount in sales.

This commit is contained in:
tanshu committed 2021-04-02 14:34:07 +05:30
1 parent faf83f9356
commit 73850560aa
35 files changed
+690 -48

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
export class CustomerDiscount {
id: string;
name: string;
discount: number;
public constructor(init?: Partial<CustomerDiscount>) {
this.id = '';
this.name = '';
this.discount = 0;
Object.assign(this, init);
}
}
+4
View File
@@ -1,14 +1,18 @@
import { CustomerDiscount } from './customer-discount';
export class Customer {
id: string;
name: string;
phone: string;
address: string;
discounts: CustomerDiscount[];
public constructor(init?: Partial<Customer>) {
this.id = '';
this.name = '';
this.phone = '';
this.address = '';
this.discounts = [];
Object.assign(this, init);
}
}