Modified validation to allow ASM parts to be installed into ASM+ reactors

This commit is contained in:
Infineon\StieberD
2025-08-28 14:38:42 -07:00
parent 2fa985137f
commit 7ec010b03f

View File

@ -138,7 +138,8 @@ PostReactItems:
ValidationFailureReason = 'Unable to install Reactor Item No. ' : InstRINo : '. Serial Number cannot be blank to non-elevator Reactor Items.'
end
end
If (InstRIRec<REACT_ITEM_PART_TYPE$> NE ReactorType) then
// Only check first three characters so that ASM parts can be installed in an ASM+ reactor
If (InstRIRec<REACT_ITEM_PART_TYPE$>[1, 3] NE ReactorType[1, 3]) then
ValidationFailureReason = 'Unable to install Reactor Item No. ' : InstRINo : '. Reactor Type must match Reactor Item Part Type.'
end
Until ValidationFailureReason NE ''
@ -408,5 +409,3 @@ RemHistKeys:
RETURN