Feature: Added product bundles. Have to wire it up to inventory and reports.
This commit is contained in:
1 parent
b79af6e1c6
commit
6e8843d3c4
48 files changed
+2139
-130
No files matched your search
@@ -4,7 +4,6 @@ import { Observable } from 'rxjs';
|
||||
import { catchError } from 'rxjs/operators';
|
||||
|
||||
import { ErrorLoggerService } from '../core/error-logger.service';
|
||||
import { StockKeepingUnit as Product } from '../core/stock-keeping-unit';
|
||||
import { UpdateProductPrices } from './update-product-prices';
|
||||
|
||||
const url = '/api/update-product-prices';
|
||||
@@ -31,7 +30,7 @@ export class UpdateProductPricesService {
|
||||
save(item: UpdateProductPrices): Observable<UpdateProductPrices> {
|
||||
const saveUrl: string = item.menuCategoryId === null ? url : `${url}/${item.menuCategoryId}`;
|
||||
return this.http
|
||||
.post<Product[]>(saveUrl, item)
|
||||
.post<UpdateProductPrices>(saveUrl, item)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'save'))) as Observable<UpdateProductPrices>;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user