Temporary Disable causes account to be taken out of Permanent Disable
An Employee was able to temporarily disable a permanently disabled Employee account, which caused the account to be taken out of Permanent Disable status.
Is this expected?
This is expected. The permanent and temporary disabled settings were designed to have only 3 possible states:
perm=0 + temp=0 => normal active employee
perm=0 + temp=1 => temporarily disabled for a specific time range
perm=1 + temp=0 => permanently deactivated for a longer time range (archived)
A possible workaround is to remove the ability to set the temporary flag if the permanent flag is already set by adding the following 3 lines in the On-Loaded table script for table "Person" in Designer:
if $IsInActive:Bool$ then
Base.Columns("IsTemporaryDeactivated").CanEdit = False 'remove write permission for ALL users