ClearSampleStorageSchedule
ClearSampleStorageSchedule[sample]⟹updatedSamples
Erase any entries in sample's StorageSchedule (if possible), and set StorageCondition to the condition reflected by where the sample is currently located.
Details
- Handles non-self-standing samples, their containers and the container's all contents simultaneously.
- Clears any entries of StorageSchedule except the StorageUpdate protocol that is currently running.
- Sets StorageCondition to the ProvidedStorageCondition of the sample's current location by default.
- If any StorageSchedule cannot be completely cleared, set the StorageCondition to one indicated in first entry of the StorageSchedule.
- Sets AwaitingStorageUpdate to False if no StorageSchedule is empty and there is no scheduled disposal.
- Sets AwaitingStorageUpdate to True if StorageSchedule is not empty or StorageSchedule is empty but disposal is scheduled in DisposalLog (also sets AwaitingDisposal to True).
- Throw an warning if the sample's status is not Available or Stocked.
Input
Output