ttsBegin;
HcmEmploymentEmployee.selectForUpdate(true);
HcmEmploymentEmployee.validTimeStateUpdateMode(ValidTimeStateUpdate::Correction);
HcmEmploymentEmployee.ProbationEndDate = DateTimeUtil::addDays
(employmentStartDate,HcmEmploymentEmployee.ProbationDays-1);
hcmEmploymentEmployee.update();
ttsCommit;
HcmEmploymentEmployee.selectForUpdate(true);
HcmEmploymentEmployee.validTimeStateUpdateMode(ValidTimeStateUpdate::Correction);
HcmEmploymentEmployee.ProbationEndDate = DateTimeUtil::addDays
(employmentStartDate,HcmEmploymentEmployee.ProbationDays-1);
hcmEmploymentEmployee.update();
ttsCommit;