Skip to content

MovementUpdatedEvent

EventType: MOVEMENT_UPDATEDDomain: inventory Broker subject: progress.notification.inventory

Updates a planned movement's confirmed quantity, positions, or splits it into multiple movements. Adjusts is_in_position balances accordingly and optionally updates associated serial records.

Trigger

Triggered by: POST /event (universal event dispatcher)

Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: MOVEMENT_UPDATED.

Preconditions

  • Movement exists with key info.movement_key
  • Movement status is PLANNED or STARTED

State Changes (Transaction)

Collections: movement, is_in_position, Serial

  • movement updated: qt_confirmed, qt_planned, position_from, position_to; split into child movements if split_into provided
  • is_in_position balances recalculated
  • Serial records updated if serial tracking is involved

Side Effects (post_processing)

Inherits post_processing() from BaseInventoryEvent:

  • Publishes to progress.notification.inventory

InfoModel Fields

FieldTypeDescription
movement_keystrKey of the movement to update
qt_confirmedfloatUpdated confirmed quantity
qt_plannedfloatUpdated planned quantity
split_intolist[MovementSplitData] | NoneSplit definitions to divide movement into sub-movements
position_fromstr | NoneUpdated source position
position_tostr | NoneUpdated destination position

None.

Source

MovementUpdatedEvent on GitHub

Released under the Apache 2.0 License.