Resource: Property, Field : AssociationPhone
Description
When AssociationYN is set to YES, AssociationPhone is required.
Error Messages
1) ERROR, the property type is 'residential' and that there is an association, indicate that the field is required.
Fields referenced within this rule
AssociationPhone
AssociationYN
PropertyType
StandardStatus
Syntax with comments and error messages
//[ErrMsg1^ERROR, the property type is 'residential' and that there is an association, indicate that the field is required.|LogicBlk1^TRUE|LogicBlk2^TRUE]
// Grandfather clause - Entry or old entry value is not empty or the last standand status was empty or has transitioned from 'incomplete' to 'active' and...
(/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).OR.(.OLDVALUE. != .EMPTY.).OR.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.(StandardStatus.IN.('A')))).AND.
// the property type is 'residential' and that there is an association and the entry is empty.
(/*[LogicBlk2]*/(PropertyType.IN.('Resi')).AND.(AssociationYN = .TRUE.).AND.(.ENTRY. = .EMPTY.))
Syntax only
((.ENTRY. != .EMPTY.).OR.(.OLDVALUE. != .EMPTY.).OR.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.(StandardStatus.IN.('A')))).AND.((PropertyType.IN.('Resi')).AND.(AssociationYN = .TRUE.).AND.(.ENTRY. = .EMPTY.))
Rule Unique ID
27a13d03-3aab-4d06-8871-c20de3ff180f
Rule Number
9