CountSessionConfirmedEvent
EventType: COUNT_SESSION_CONFIRMEDDomain: inventory Broker subject: progress.notification.inventory
Confirms a completed inventory count session, triggering the creation of an adjustment MovementList and locking all involved positions. This is the last operator-facing step before async processing begins via CountSessionAppliedEvent.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: COUNT_SESSION_CONFIRMED.
Preconditions
InventoryCountSessionexists with keyinfo.session_key- Session
statusisCOMPLETED
State Changes (Transaction)
Collections: InventoryCountSession, inventory_count_record, Counter, Config, MovementList, is_in_position
InventoryCountSessionupdated:status → PROCESSING,adjustment_list_keysetMovementListinserted for adjustments (uses counter if configured)is_in_positionrecords for all counted positions locked (locked → true,locked_by → session_key)
Side Effects (post_processing)
Inherits post_processing() from BaseInventoryEvent:
- Publishes to
progress.notification.inventory
InfoModel Fields
| Field | Type | Description |
|---|---|---|
session_key | str | ArangoDB key of the inventory count session to confirm |
Related Events
None.