Conditions for Updating Portion Activity Status upon assigning a Sample Handling to a Portion
When a portion's Sample Handling Code is updated, then the portion's Sample Handling Started Date is set to the current server date-time, Sample Handling Started By is set to the current user, Sample Handling Due Date is set to the portion's Sample Handling Started Date + the sample handling's Duration (for example, 'In lab, Store 90 days' would have 90 days duration, 'Dispatched for subcontracting' would have 0 days as it is an immediate change of sample handling), and if the sample handling's Set Portion Is Active check box is:
- Checked, then the portion's Active is selected.
- Unchecked then the portion's Active check box is cleared.
