Big Chunk of updates on way to making the sales portion working

This commit is contained in:
Amritanshu
2019-07-06 13:46:18 +05:30
parent 87076d9c00
commit d69ab0063a
83 changed files with 1621 additions and 415 deletions

View File

@ -68,7 +68,7 @@ export class ProductDetailComponent implements OnInit, AfterViewInit {
hasHappyHour: this.item.hasHappyHour,
isNotAvailable: this.item.isNotAvailable,
quantity: this.item.quantity || '',
isActive: this.item.isActive,
isActive: this.item.isActive
});
}

View File

@ -30,7 +30,15 @@ export class ProductService {
const options = {params: new HttpParams().set('l', '')};
return <Observable<Product[]>>this.http.get<Product[]>(url, options)
.pipe(
catchError(this.log.handleError(serviceName, 'getList'))
catchError(this.log.handleError(serviceName, 'list'))
);
}
listIsActiveOfCategory(id: string): Observable<Product[]> {
const options = {params: new HttpParams().set('mc', id).set('a', '')};
return <Observable<Product[]>>this.http.get<Product[]>(url, options)
.pipe(
catchError(this.log.handleError(serviceName, 'listIsActiveOfCategory'))
);
}