Work Orders
Covers work orders (WO), WO items, WO receipts, and WO status types. WOs convert materials into finished goods at a work site (a fulfillment location). Operations drive both the materials inventory ledger (consumption) and the finished-goods inventory ledger (production).
Writes
- Create work order — Triggered from the Work Orders page → "New WO". Creates a WO header (number, order date, expected delivery, work site, items with material unit cost and conversion cost, initial status).
- Update work order — Triggered from Work Order Detail. Edits header fields and items, and progresses status (Draft → Entered → Placed → Production → In Transit → Partial → Received → Completed).
- Delete work order — Triggered from Work Order Detail. Removes the WO and all its items and receipts.
- Bulk-import work orders — Triggered from the Data page → WO import. Uploads a CSV/Excel file to create multiple WOs at once.
- Create receipt against work order — Triggered from Work Order Detail receipts section. Records that a receipt landed on a given date with a set of received quantities; drives both inventory ledgers.
- Update receipt — Triggered from Work Order Detail receipts section. Changes receipt date or received quantities.
- Delete receipt — Triggered from Work Order Detail receipts section. Removes a receipt and reverses its ledger effects.
- Upload document to work order — Triggered from Work Order Detail documents section. Attaches a file (uploaded to GCS) with a display name.
- Delete document from work order — Triggered from Work Order Detail documents section. Detaches and removes a file.
- Create WO status type — Triggered from Settings → WO status types. Adds a new status to the WO workflow.
- Update WO status type — Triggered from Settings → WO status types. Renames or recolors a status.
- Delete WO status type — Triggered from Settings → WO status types. Removes a status (only allowed if no WO is in it).
- Reactivate WO status type — Triggered from Settings → WO status types. Reverses a soft-delete / deactivation.
Reads
- List work orders — Triggered from the Work Orders page (default view). Returns WOs with header fields, optionally filtered by status.
- Get work order detail — Triggered by clicking a WO in the list. Returns the full WO header with items.
- List receipts for a work order — Triggered from Work Order Detail receipts section. Returns the receipts logged against a WO.
- Get receipt detail — Triggered by clicking a receipt on Work Order Detail. Returns a single receipt with its received items.
- List documents for a work order — Triggered from Work Order Detail documents section. Returns the files attached to one WO.
- List WO status types — Triggered from the Work Orders filter dropdown, the WO status selector, and Settings → WO status types. Returns the available statuses.
- Check if WO status type is in use — Triggered before deleting a WO status type. Returns whether any WO is in it.