Resource: Property, Field : HoldActivationDate
Description
HoldActivationDate must be less then 30 days in the future.
Error Messages
1) ERROR, the hold activation date must be less than or equal to 30 days in the future.
2) ERROR, the hold activation date must be the current date or in the future.
Fields referenced within this rule
Syntax with comments and error messages
//[ErrMsg1^ERROR, the hold activation date must be less than or equal to 30 days in the future.|LogicBlk1^TRUE|LogicBlk2^FALSE]
//[ErrMsg2^ERROR, the hold activation date must be the current date or in the future.|LogicBlk1^TRUE|LogicBlk3^FALSE]
// If the entry is not empty and the date of the entry has changed...
IIF((/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).AND.(DATEONLY(.ENTRY.) != DATEONLY(.OLDVALUE.))),
// Then check that the entry is less than 30 days in the future and that the entry is in the future.
(/*[LogicBlk2]*/FLOAT(DAYS(.ENTRY.,.TODAY.)) <= FLOAT(30)).AND.(/*[LogicBlk3]*/DATEONLY(.ENTRY.) >= DATEONLY(.TODAY.)),
// Else ACCEPT the empty entry.
.ENTRY. = .EMPTY.)
Syntax only
IIF(((.ENTRY. != .EMPTY.).AND.(DATEONLY(.ENTRY.) != DATEONLY(.OLDVALUE.))),(FLOAT(DAYS(.ENTRY.,.TODAY.)) <= FLOAT(30)).AND.(DATEONLY(.ENTRY.) >= DATEONLY(.TODAY.)),.ENTRY. = .EMPTY.)
Rule Unique ID
98549b1f-3235-405b-a753-5274c144133c
Rule Number
91