Incentive Done!!
Employee Benefit Done!!
This commit is contained in:
@ -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'))
|
||||
);
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user