Merge branch 'develop' of github.com:Frappet/hrms-api-org into develop

This commit is contained in:
kittapath 2024-12-12 18:29:26 +07:00
commit ed1761ecba
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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 {