diff --git a/src/controllers/EmployeePositionController.ts b/src/controllers/EmployeePositionController.ts index 7534803d..ab47c9d8 100644 --- a/src/controllers/EmployeePositionController.ts +++ b/src/controllers/EmployeePositionController.ts @@ -2247,6 +2247,11 @@ export class EmployeePositionController extends Controller { profile.posLevel = positionNew.posLevel; profile.posType = positionNew.posType; profile.position = positionNew.positionName; + profile.employeeOc = posMaster?.orgRoot?.orgRootName ?? null; + profile.positionEmployeePositionId = positionNew.positionName; + // profile.positionEmployeeLineId = "PERM"; + // profile.positionEmployeeGroupId = "PERM"; + await this.profileRepository.save(profile); await this.employeePositionRepository.save(positionNew); } diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index a9de638b..dc377607 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -3145,8 +3145,10 @@ export class ProfileEmployeeController extends Controller { .then(async (x) => { profile.statusTemp = "DONE"; profile.employeeClass = "PERM"; + const _null: any = null; + profile.employeeWage = v.amount == null ? _null : v.amount.toString(); await this.profileRepo.save(profile); - }) + }); await new CallAPI() .PostData(request, "/org/employee/pos/report/current", { posmasterId: profile.posmasterIdTemp,