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'))
);

View File

@ -2,6 +2,7 @@ import {Account} from './account';
import {User} from './user';
import {CostCentre} from './cost-centre';
import {Product} from './product';
import {Employee} from "../employee/employee";
export class Voucher {
id: string;
@ -45,7 +46,7 @@ export class EmployeeBenefit {
pfEmployee: number;
esiEmployer: number;
pfEmployer: number;
journal: Journal; // Should be employee as we need designation
employee: Employee;
}
export class Incentive {