Customer discount with prefill discount in sales.

This commit is contained in:
2021-04-02 14:34:07 +05:30
parent faf83f9356
commit 73850560aa
35 changed files with 690 additions and 48 deletions

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);
}
}

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);
}
}