Merge branch 'develop' of github.com:Frappet/hrms-api-org into develop
This commit is contained in:
commit
ed1761ecba
2 changed files with 2 additions and 1 deletions
|
|
@ -3474,6 +3474,7 @@ export class CommandController extends Controller {
|
|||
const _null: any = null;
|
||||
profile.employeeWage = item.amount == null ? _null : item.amount.toString();
|
||||
profile.dateStart = new Date();
|
||||
profile.dateAppoint = new Date();
|
||||
profile.amount = item.amount == null ? _null : item.amount;
|
||||
profile.amountSpecial = item.amountSpecial == null ? _null : item.amountSpecial;
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ export async function calculateGovAge(profileId: string, type: string) {
|
|||
}
|
||||
})
|
||||
// const firstStartDate = new Date(records[0].date);
|
||||
const firstStartDate = profile?.dateAppoint;
|
||||
const firstStartDate = profile?.dateAppoint ? profile?.dateAppoint : new Date();
|
||||
const firstEndDate = endDateFristRec ? new Date(endDateFristRec.dateGovernment) : new Date();
|
||||
|
||||
const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue