Incentive Done!!

Employee Benefit Done!!
This commit is contained in:
tanshu
2020-05-23 09:45:02 +05:30
parent 814d289758
commit e3286c87ba
20 changed files with 515 additions and 415 deletions

View File

@ -41,8 +41,8 @@ export class VoucherService {
}
getIncentive(date: string): Observable<Voucher> {
const options = {params: new HttpParams().set('t', 'Incentive').set('d', date)};
return <Observable<Voucher>>this.http.get<Voucher>(url, options)
const options = {params: new HttpParams().set('d', date)};
return <Observable<Voucher>>this.http.get<Voucher>(`${url}/incentive`, options)
.pipe(
catchError(this.log.handleError(serviceName, 'list'))
);