A user OKed a delivery, then opened the non-OKed version of the delivery from record history, in order to print a picking note. Some HAL is updating a field on the delivery each time it is printed, if it has not been OKed, and this caused the system to crash with a D4Index error.
Is there a simple way in HAL to check if the record on screen is an older version? Or do we have to compare against the stored record?