Bump to version 3.0.0

Printing done on:
 Cashier Report
 Discount Report
 Sale Report
This commit is contained in:
2020-10-27 12:13:17 +05:30
parent 00fe2410b7
commit cbc2f29e29
32 changed files with 690 additions and 110 deletions

View File

@ -46,4 +46,20 @@ export class CashierReportService {
.pipe(catchError(this.log.handleError(serviceName, 'activeCashiers')));
}
print(id: string, startDate: string, finishDate): Observable<boolean> {
const printUrl = `${url}/print/${id}`;
const options = { params: new HttpParams() };
if (startDate !== null) {
options.params = options.params.set('s', startDate);
}
if (finishDate !== null) {
options.params = options.params.set('f', finishDate);
}
return <Observable<boolean>>(
this.http
.get<boolean>(printUrl, options)
.pipe(catchError(this.log.handleError(serviceName, 'print')))
);
}
}