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

@ -67,7 +67,7 @@ export class ProductDetailComponent implements OnInit, AfterViewInit {
isPurchased: this.item.isPurchased,
isSold: this.item.isSold,
isActive: this.item.isActive,
productGroup: this.item.productGroup.id ? this.item.productGroup.id : '',
productGroup: this.item.productGroup ? this.item.productGroup.id : '',
});
}
@ -126,6 +126,9 @@ export class ProductDetailComponent implements OnInit, AfterViewInit {
this.item.isPurchased = formModel.isPurchased;
this.item.isSold = formModel.isSold;
this.item.isActive = formModel.isActive;
if (this.item.productGroup === undefined) {
this.item.productGroup = new ProductGroup();
}
this.item.productGroup.id = formModel.productGroup;
return this.item;
}