MPA reason code
def value = dateCheck()
// If dateCheck is not "No", immediately return false
if (value != "No") {
return false
}
// Check if the action matches the specific list of codes
def restrictedActions = ['MAV_DIR_BB_ACTION_1000', 'MAV_DIR_BB_ACTION_1001', 'MAV_DIR_BB_ACTION_1051']
if (BBAction_c in restrictedActions) {
return false
}
// Fix: Use == for comparison
if (BBActionManual_c == 'MAV_DIR_BB_ACTION_1006') {
return false
}
// If none of the above conditions met, return true
return true
Comments
Post a Comment