Added loading bar

Fixed product, account and employee details for add new.
This commit is contained in:
tanshu
2018-06-10 13:58:01 +05:30
parent 659de0ae52
commit 8996516978
10 changed files with 75 additions and 25 deletions

View File

@ -57,19 +57,20 @@ export class ProductDetailComponent implements OnInit, AfterViewInit {
showItem(item: Product) {
this.item = item;
console.log(item);
this.form.setValue({
code: this.item.code || '(Auto)',
name: this.item.name,
units: this.item.units,
fraction: this.item.fraction,
fractionUnits: this.item.fractionUnits,
productYield: this.item.productYield,
price: this.item.price,
salePrice: this.item.salePrice,
name: this.item.name || '',
units: this.item.units || '',
fraction: this.item.fraction || '',
fractionUnits: this.item.fractionUnits || '',
productYield: this.item.productYield || '',
price: this.item.price || '',
salePrice: this.item.salePrice || '',
isPurchased: this.item.isPurchased,
isSold: this.item.isSold,
isActive: this.item.isActive,
productGroup: this.item.productGroup.id
productGroup: this.item.productGroup.id ? this.item.productGroup.id : ''
});
}