Skip to content

WIPUnbookedEvent

EventType: WIP_UNBOOKEDDomain: wip Broker subject: progress.notification.production

Reverses a WIP booking, releasing material that was reserved for a phase back to the previous phase or pool. Used when a batch or job is reset or when WIP needs to be redistributed.

Trigger

Triggered by: POST /event (universal event dispatcher)

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

Preconditions

  • Job exists with key info.job_key
  • WIP booking exists for the job

State Changes (Transaction)

Collections: Inherited from BaseProductionEvent.get_tx_collections()

  • wip booking record deleted or reduced by info.quantity

Side Effects (post_processing)

Inherits post_processing() from BaseProductionEvent:

  • Updates job.last_online
  • Recalculates work order status
  • Publishes to progress.notification.production

InfoModel Fields

FieldTypeDescription
job_keystrArangoDB key of the job
quantityintQuantity of WIP to unbook

None.

Source

WIPUnbookedEvent on GitHub

Released under the Apache 2.0 License.