Moved all the schemas into their own logical files.

This commit is contained in:
2020-12-04 13:02:13 +05:30
parent 8ff8d6bc91
commit 2d81f80c63
83 changed files with 1669 additions and 1430 deletions

View File

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