Fix: import script to fit the new structure of voucher table (is_printed field removed, voucher_type != KOT is now assumed to be printed)
Fix: Take-away bill type is now removed Fix: Table overview now shows the right amounts Voucher Save and Update should now work Discounts now working (permissions are not checked)
This commit is contained in:
@ -34,6 +34,14 @@ export class SaleCategoryService {
|
||||
);
|
||||
}
|
||||
|
||||
listForDiscount(): Observable<{name: string, discount: number}[]> {
|
||||
const options = {params: new HttpParams().set('d', '')};
|
||||
return <Observable<{name: string, discount: number}[]>>this.http.get<{name: string, discount: number}[]>(url, options)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'list'))
|
||||
);
|
||||
}
|
||||
|
||||
save(saleCategory: SaleCategory): Observable<SaleCategory> {
|
||||
return <Observable<SaleCategory>>this.http.post<SaleCategory>(`${url}/new`, saleCategory, httpOptions)
|
||||
.pipe(
|
||||
|
||||
Reference in New Issue
Block a user