mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 17:02:55 +08:00
23 lines
863 B
Python
23 lines
863 B
Python
from enum import StrEnum, auto
|
|
|
|
|
|
class ShipmentState(StrEnum):
|
|
"""Shipment Workflow States
|
|
empty -> preperation -> ready -> shipped
|
|
Other:
|
|
rejected, recalled, received
|
|
"""
|
|
|
|
DUE = auto() # shipment recived from external labs
|
|
RECEIVING = auto()
|
|
EMPTY = auto() # shipment without samples
|
|
PREPERATION = auto() # shipment containing at least a single sample
|
|
READY = auto() # shipment finalised
|
|
AWAITING = auto() # shipment queued for dispatch
|
|
FAILED = auto() # shipment queued for dispatch, has at least a one dispatch trial
|
|
SHIPPED = (
|
|
auto()
|
|
) # shipment that was successfully send and acknowledged in the other system
|
|
REJECTED = auto() # shipment rejected by the receiving lab
|
|
RECEIVED = auto() # shipment receved by the receiving lab
|
|
CANCELLED = auto() #
|