ACCEPT

Resource: Property, Field : BuyerAgencyCompensationType

Description

When BuyerAgencyCompensationType is 0, BuyerAgencyCompensationType should be set to "see remarks".

Error Messages

1) ERROR, if the compensation type is 'see remarks' and the listing agreement is open the compensation must be 0.
2) ERROR, if the compensation type is not 'see remarks', than the compensation must be greater than 0.

Fields referenced within this rule

BuyerAgencyCompensation 

BuyerAgencyCompensationType 

ListingAgreement 

StandardStatus 

Syntax with comments and error messages

//[ErrMsg1^ERROR, if the compensation type is 'see remarks' and the listing agreement is open the compensation must be 0.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^FALSE|LogicBlk4^TRUE|LogicBlk5^TRUE]
//[ErrMsg2^ERROR, if the compensation type is not 'see remarks', than the compensation must be greater than 0.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk6^TRUE|LogicBlk7^FALSE]
// Grandfather clause...
(/*[LogicBlk1]*/(.ENTRY. = .OLDVALUE.).AND..NOT.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.StandardStatus.IN.('A','P'))).OR.
// If entry is not empty and has changed...
IIF((/*[LogicBlk2]*/(.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),
// Then check that buyer agency compensation equals 0 and compensation type is 'see remarks' and listing agreement is 'open' or...
((/*[LogicBlk3]*/BuyerAgencyCompensation = 0.000).AND.(/*[LogicBlk4]*/.ENTRY..IN.('REM')).AND.(/*[LogicBlk5]*/ListingAgreement.IN.('OP'))).OR.
// the compensation type is not 'see remarks' and buyer agency compensation is greater than 0.
((/*[LogicBlk6]*/.NOT.(.ENTRY..IN.('REM'))).AND.(/*[LogicBlk7]*/BuyerAgencyCompensation > 0.000)),
// Else ACCEPT entry.
.TRUE.)
//(BuyerAgencyCompensation = 0.000) .AND. (.ENTRY. .IN. ('REM')) .AND. (ListingAgreement .IN. ('OP')) .OR.
//(.NOT.(.ENTRY. .IN. ('REM'))) .AND. (BuyerAgencyCompensation > 0.000) .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.IN.('I')).AND.StandardStatus.IN.('A','P'))).OR.IIF(((.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),((BuyerAgencyCompensation = 0.000).AND.(.ENTRY..IN.('REM')).AND.(ListingAgreement.IN.('OP'))).OR.((.NOT.(.ENTRY..IN.('REM'))).AND.(BuyerAgencyCompensation > 0.000)),.TRUE.) /  / ((.ENTRY. = .OLDVALUE.).AND..NOT.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus = ('I')).AND.StandardStatus.IN.('A','P')))

Rule Unique ID

03d5c136-51b4-4fd7-9bf3-2d64d50b7889

Rule Number

28