R32769-2 PartyContactMechanisms - Remove Default Check
Name | Value |
---|---|
Code | R32769-2 |
Entity | General.Contacts.PartyContactMechanisms Entity |
Name | RemoveDefaultCheck |
Attribute | IsDefault |
Layer | Front-End |
Events | AttributeChanged(IsDefault) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | if (ThruDate != null || (FromDate != null && FromDate > Today)) , then throw Exception("A party contact mechanism can't be deafault if its '{From_Date.Name}' is greater than today or it has '{Thru_Date.Name}'.") , else remove IsDefault from the previous default record (if any). |
Description | Remove previous Default check if new default selected and check new default for validity. |
Message | A party contact mechanism can't be default if its 'ThruDate' is greater than today or ot has 'FromDate' |
Introduced In Version | Introduced: 2022 |
Revocable | YES |