Moved all the schemas into their own logical files.
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import { Account } from './account';
|
||||
import { ProductGroup } from './product-group';
|
||||
|
||||
export class Product {
|
||||
@ -15,8 +14,7 @@ export class Product {
|
||||
isFixture: boolean;
|
||||
isPurchased: boolean;
|
||||
isSold: boolean;
|
||||
productGroup: ProductGroup;
|
||||
account: Account;
|
||||
productGroup?: ProductGroup;
|
||||
|
||||
public constructor(init?: Partial<Product>) {
|
||||
this.code = 0;
|
||||
@ -31,8 +29,6 @@ export class Product {
|
||||
this.isFixture = false;
|
||||
this.isPurchased = true;
|
||||
this.isSold = false;
|
||||
this.productGroup = new ProductGroup();
|
||||
this.account = new Account();
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user