WarehouseListClosed
EventType: WAREHOUSE_LIST_CLOSEDDomain: inventory Broker subject: progress.notification.inventory
Closes a warehouse movement list by setting its status to CLOSED and canceling any remaining open planned movements within the list.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: WAREHOUSE_LIST_CLOSED. Also created directly in backend/api/endpoints/inventory.py at POST /movement-list close operation.
Preconditions
MovementListexists with keyinfo.movement_list_key- Movement list
statusis not alreadyCLOSED
State Changes (Transaction)
Collections: MovementList, movement
MovementListupdated:status → CLOSED,endtimestamp set- Open
movementrecords in the list updated:status → CANCELED
Side Effects (post_processing)
Inherits post_processing() from BaseInventoryEvent:
- Publishes to
progress.notification.inventory
InfoModel Fields
| Field | Type | Description |
|---|---|---|
movement_list_key | str | ArangoDB key of the movement list to close |
Related Events
None.