Skip to content
ERP HelpLyncs Help

Production Events, Lot Packing & SAP 5-Step Workflow

Production Events Lifecycle
/production/events

Manufacture 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 Architecture6 stages · Click any node to open its step guide & UI modals
Happy pathReopen / ReturnDispute / Cancel
Filter steps by your roleHighlights stages owned by your Lyncs role
1StageDraft
Create Draft & Explode Recipe BOM
Production Supervisor / Chef • Source
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.
2StageSubmitted
Submit & Cost Variance Guard (25% / 50%)
Production Supervisor / Chef • Source
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
3StagePosted
Post Event to Stock Ledger
Production Supervisor / Chef • Source
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.
4OptionalPosted
Pack Output Into Lots / Batches (Optional)
Production Supervisor / Chef • Source
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.
5OptionalSubmitted
Reverse & Repost Posted Event
Production Supervisor / Chef • Source
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.
6StagePosted
SAP 5-Step Production Order Sync & Hold
Accounting Admin • Company
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.
  • 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 (>= 3 characters).
  • Lot Packing (productionLotsEnabled): Packing produced goods at /production/events/:eventId/create-lot is 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.