Added loading bar
Fixed product, account and employee details for add new.
This commit is contained in:
@ -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 : ''
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user