Skip to content

CountDiscardedEvent

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

Discards a completed or pending count record, removing it from the session without applying any inventory adjustments.

Trigger

Triggered by: POST /event (universal event dispatcher)

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

Preconditions

  • Count record exists with key info.count_key

State Changes (Transaction)

Collections: inventory_count_record

  • inventory_count_record updated: discarded flag set

Side Effects (post_processing)

Inherits post_processing() from BaseInventoryEvent:

  • Publishes to progress.notification.inventory

InfoModel Fields

FieldTypeDescription
count_keystrArangoDB key of the count record to discard

None.

Source

CountDiscardedEvent on GitHub

Released under the Apache 2.0 License.