Product list / detail / router fully working.
Need to test the sale / reports
This commit is contained in:
@ -44,7 +44,6 @@ export class ProductDetailComponent implements OnInit, AfterViewInit {
|
||||
hasHappyHour: '',
|
||||
isNotAvailable: '',
|
||||
quantity: '',
|
||||
isActive: '',
|
||||
});
|
||||
}
|
||||
|
||||
@ -70,7 +69,6 @@ export class ProductDetailComponent implements OnInit, AfterViewInit {
|
||||
hasHappyHour: this.item.hasHappyHour,
|
||||
isNotAvailable: this.item.isNotAvailable,
|
||||
quantity: this.item.quantity || '',
|
||||
isActive: this.item.isActive,
|
||||
});
|
||||
}
|
||||
|
||||
@ -127,7 +125,6 @@ export class ProductDetailComponent implements OnInit, AfterViewInit {
|
||||
this.item.hasHappyHour = formModel.hasHappyHour;
|
||||
this.item.isNotAvailable = formModel.isNotAvailable;
|
||||
this.item.quantity = +formModel.quantity;
|
||||
this.item.isActive = formModel.isActive;
|
||||
return this.item;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user