Compartilhar via


ReleaseUpdateTransformDB50_Basic.validateEmployeeTerminatedStatus Upgrade Script

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Class

ReleaseUpdateTransformDB50_Basic

Method

validateEmployeeTerminatedStatus

Description

Validates whether there are any records in the HRMPartyEmployeeRelationship table where the TerminationDate field is populated and the corresponding status field of the EmplTable record is not equal to the HRMEmplStatus::Resigned enumeration value.

Script Type

Upgrade readiness scripts

Microsoft Dynamics AX Source

Microsoft Dynamics AX 4.0

Microsoft Dynamics AX 2009

Affected Modules and Tables

Affected Modules

Human Resources

Validation Issues

Validation Issues Description

Validate whether there are any records in the HRMPartyEmployeeRelationship table where the TerminationDate field is populated and the corresponding status field of the EmplTable record is not equal to the HRMEmplStatus::Resigned enumeration value.

Checked Conditions

HRMPartyEmployeeRelationship.TerminationDate != DateTimeUtil::minValue() && EmplTable.status != HRMRmplStatus::Resigned

Mitigation/How-to-fix

The user is informed that the TerminationDate field in the HRMPartyEmployeeRelationship table and status need to be consistent.