Skip to content

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 ​

  • MovementList exists with key info.movement_list_key
  • Movement list status is not already CLOSED

State Changes (Transaction) ​

Collections: MovementList, movement

  • MovementList updated: status → CLOSED, end timestamp set
  • Open movement records in the list updated: status → CANCELED

Side Effects (post_processing) ​

Inherits post_processing() from BaseInventoryEvent:

  • Publishes to progress.notification.inventory

InfoModel Fields ​

FieldTypeDescription
movement_list_keystrArangoDB key of the movement list to close

None.

Source ​

WarehouseListClosed on GitHub

Released under the Apache 2.0 License.