ACCEPT

Resource: Property, Field : LandLeaseYN

Description

When status is residential lease, LandLeaseYN can only be set to no.

Error Messages

1) ERROR, for 'land lease yes/no' when the property type is residential, the property sub-type can only be manufactured on land.
2) ERROR, for 'land lease yes/no' when the property type is residential lease, the 'land lease yes/no' can only transition from yes to no.

Fields referenced within this rule

LandLeaseYN 

PropertySubType 

PropertyType 

StandardStatus 

Syntax with comments and error messages

//[ErrMsg1^ERROR, for 'land lease yes/no' when the property type is residential, the property sub-type can only be manufactured on land.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk4^FALSE]
//[ErrMsg2^ERROR, for 'land lease yes/no' when the property type is residential lease, the 'land lease yes/no' can only transition from yes to no.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk5^TRUE|LogicBlk6^FALSE](/*[LogicBlk1]*/(.ENTRY. = .OLDVALUE.).AND..NOT.(((LASTStandardStatus = .EMPTY.).OR.(LASTStandardStatus = 'I')).AND.(StandardStatus.IN.('A','P')))).OR.IIF((/*[LogicBlk2]*/(.ENTRY. != .OLDVALUE.).AND.(.ENTRY. != .EMPTY.)),((/*[LogicBlk3]*/PropertyType.IN.('Resi')).AND.(/*[LogicBlk4]*/PropertySubType.IN.('MANL'))).OR.((/*[LogicBlk5]*/PropertyType.IN.('Rlse')).AND.(/*[LogicBlk6]*/IIF((.ENTRY.),(.FALSE.),(.TRUE.)))),.TRUE.)
// ((PropertyType .IN. ('Resi')) .AND. (PropertySubType .IN. ('MANL')) .OR. (PropertyType .IN. ('Rlse'))) .AND. IIF((.ENTRY.),(.FALSE.),(.TRUE.))) .OR.
 /  / ((.ENTRY. = .OLDVALUE.).AND..NOT.(((LASTStandardStatus = .EMPTY.).OR.(LASTStandardStatus = 'I')).AND.(StandardStatus.IN.('A','P'))))

Syntax only

((.ENTRY. = .OLDVALUE.).AND..NOT.(((LASTStandardStatus = .EMPTY.).OR.(LASTStandardStatus = 'I')).AND.(StandardStatus.IN.('A','P')))).OR.IIF(((.ENTRY. != .OLDVALUE.).AND.(.ENTRY. != .EMPTY.)),((PropertyType.IN.('Resi')).AND.(PropertySubType.IN.('MANL'))).OR.((PropertyType.IN.('Rlse')).AND.(IIF((.ENTRY.),(.FALSE.),(.TRUE.)))),.TRUE.) /  / ((.ENTRY. = .OLDVALUE.).AND..NOT.(((LASTStandardStatus = .EMPTY.).OR.(LASTStandardStatus = 'I')).AND.(StandardStatus.IN.('A','P'))))

Rule Unique ID

7c03f364-490a-4d26-bf2d-44f63c5846b9

Rule Number

100