Customer discount with prefill discount in sales.
This commit is contained in:
@ -33,14 +33,6 @@ export class SaleCategoryService {
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<SaleCategory[]>;
|
||||
}
|
||||
|
||||
listForDiscount(): Observable<{ name: string; discount: number; discountLimit: number }[]> {
|
||||
return this.http
|
||||
.get<{ name: string; discount: number; discountLimit: number }[]>(`${url}/for-discount`)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<
|
||||
{ name: string; discount: number; discountLimit: number }[]
|
||||
>;
|
||||
}
|
||||
|
||||
save(saleCategory: SaleCategory): Observable<SaleCategory> {
|
||||
return this.http
|
||||
.post<SaleCategory>(url, saleCategory, httpOptions)
|
||||
|
||||
Reference in New Issue
Block a user