Production Events, Lot Packing & SAP 5-Step Workflow
Production Events Lifecycle
/production/eventsManufacture prepared or semi-finished items from published recipes, consume raw ingredients, enforce 25%/50% cost variance checks, pack lots/batches, reverse if needed, and sync 5-step SAP Production Orders.
Lifecycle Flow & Branch Architecture
Happy pathReopen / ReturnDispute / Cancel
Reopen to Draft
Source
Source
Source
Source
Source
Company HQ
CANCELLEDCancel event
Filter steps by your roleHighlights stages owned by your Lyncs role
Stock: Explodes published output item recipes (requiring positive standard_yield_qty & yield UOM). Editing recipe ingredient actuals requires Production Ingredient Management. Up to 20 image attachments & team attribution.
SAP / ERP: None in Draft.
Open stage guideNext →
Stock: Checks estimated cost vs reference location cost. Variance > 25% shows warning banner; variance > 50% blocks Submit until User checks acknowledgement and enters >= 3-char comment.
SAP / ERP: None until Post.
Reopen to DraftCancel event
Open stage guideNext →
Stock: Writes immutable PRODUCTION_OUT for consumed ingredients (FEFO allocation where lot-tracked) and PRODUCTION_IN for manufactured finished goods.
SAP / ERP: Auto-queues or enables manual ERP sync per output line when configured.
Open stage guideNext →
Stock: Available when productionLotsEnabled is active (/production/events/:id/create-lot). Packs boxes via item packages or dynamic weights into tracked Lots; unpacked remainder stays bulk kitchen stock.
SAP / ERP: Preserves lot-level genealogy links cleanly.
Open stage guideNext →
Stock: Reverses active PRODUCTION_IN & PRODUCTION_OUT ledger entries and returns event to Submitted for editing & reposting. Blocked if any live Batch still allocates from this event (must soft-delete allocating batches first).
SAP / ERP: Requires accounting reconciliation before/after reversal if already posted externally.
Open stage guideNext →
Stock: Read-only on Lyncs balances (syncs Lyncs production quantities to ERP).
SAP / ERP: Creates ONE SAP Production Order per output item (BOM from SAP ProductTrees, BaseType 202): 1. Create PO -> 2. Release -> 3. Issue for Production -> 4. Receipt from Production -> 5. Close PO. (QuickBooks creates one Inventory Adjustment). Accounting Admin can Hold/Ignore with >=3 char reason if not synced/in-flight.
Key Architecture & Cost Rules
Section titled “Key Architecture & Cost Rules”- BOM Explosion & Ingredient Lock: Selecting finished/semi-finished items automatically explodes their published recipe (
standard_yield_qty > 0). Ingredient quantities are locked unless the user holds Production Ingredient Management. - Dual-Threshold Variance Gate: Submitting compares batch cost to location reference cost:
> 25%warns, while> 50%blocks Submit until acknowledged with a written reason (>= 3characters). - Lot Packing (
productionLotsEnabled): Packing produced goods at/production/events/:eventId/create-lotis optional; unpacked output stays in bulk kitchen stock. - Lot Reversal Guard: A posted event cannot be reversed (
Posted -> Submitted) while any live Batch still allocates from it. - SAP 5-Step Order Contract: Each output item spawns one dedicated SAP Production Order (
ProductTrees,BaseType = 202) passing sequentially through Create → Release → Issue for Production → Receipt from Production → Close.