Customer discount with prefill discount in sales.

This commit is contained in:
2021-04-02 14:34:07 +05:30
parent faf83f9356
commit 73850560aa
35 changed files with 690 additions and 48 deletions

View File

@ -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)