Production Events — Print View
1. Create Draft & Explode Recipe BOM
Draft2. Submit & Cost Variance Guard (25% / 50%)
Submitted3. Post Event to Stock Ledger
Posted4. Pack Output Into Lots / Batches (Optional)
Posted5. Reverse & Repost Posted Event
Submitted6. SAP 5-Step Production Order Sync & Hold
PostedStage 1 Details
1. Create Draft & Explode Recipe BOM
Navigate to Production → Events (/production/events) and click New Production Event (Production Event Create, Production Event Draft), or click Repeat Event on a previous batch to copy its recipes into a fresh Draft for today’s shift.
When Restrict to one item (
productionRestrictToOneItem) is turned on in/production/settings, each event accepts only one output SKU.
Operational actions
- Select the Central Kitchen / Production location, operational date, shift or team attribution metadata, and any prepared output SKUs.
- When you add an output item, Lyncs automatically loads its published recipe BOM (the recipe must specify a positive
standard_yield_qtyand valid yield UOM). - Ingredient Editing Guardrail:
- Standard production operators can enter produced output quantities while keeping recipe ingredient ratios locked.
- Modifying actual ingredient weights, swapping inputs, or tuning loss lines requires the Production Ingredient Management permission.
- Attach up to 20 image files for batch QC, temperature checks, or tray appearance verification.
- Save as Draft — ingredient and finished-good balances remain unchanged until the event is posted.
Common block or edge cases
- If an output SKU fails to explode its recipe, open Inventory → Repository → Recipes and confirm the recipe status is Published with
standard_yield_qty > 0.
Stage 2 Details
2. Submit Event & 25% / 50% Cost Variance Guard
Once output yields and ingredient actuals are recorded, click Submit (Production Event Submit) to lock draft edits and validate production costs.
Cost Variance Check rules
When submitting, Lyncs compares the batch’s calculated cost per output unit against the location’s reference item cost (productionEventService.ts):
- Variance
<= 25%: Submits immediately with no warning. - Variance
> 25%and<= 50%: Displays an amber warning banner highlighting the percentage variance so the supervisor can double-check yields or ingredient weights before continuing. - Variance
> 50%: Blocks submission until you explicitly check the Acknowledge high cost variance checkbox and enter an explanation note of at least 3 characters.
Cost column masking: Estimated ingredient costs, unit output costs, and variance monetary amounts render only when the user holds Production Event Cost View. Supervisors without this permission can still submit quantities and ack high-variance alerts as authorized.
Reopen or Cancel before Post
- Reopen to Draft (Production Event Reopen): Moves
Submitted -> Draftso ingredient lines or output quantities can be adjusted. - Cancel (Production Event Cancel): Moves
DraftorSubmittedtoCancelledcleanly without creating ledger movements.
Stage 3 Details
3. Post Event to Stock Ledger
Click Post (Production Event Post) on a Submitted Production Event to commit inventory consumption and production output into the location ledger.
Recommended Post Preview workflow
- Click Post Preview to verify ingredient stock availability, earliest-expiry batch order, and final output quantities before committing.
- Confirm no zero-cost ingredients or negative-stock blockers remain; if any ingredient has zero cost, set its branch/recipe pricing first (
Confirm & Poststays disabled until resolved). - Click Confirm Post:
- Lyncs writes atomic
PRODUCTION_OUTdeductions for every consumed ingredient (allocating oldest-expiring tracked lots first via FEFO where lot tracing is active). - Lyncs writes atomic
PRODUCTION_INadditions for every finished or semi-finished output item. - If ERP sync is enabled, one sync job per finished output line is queued automatically.
- Lyncs writes atomic
- Authorized auditors or managers can export the event sheet using Production Event Export.
Stage 4 Details
4. Pack Output Into Lots / Batches (Optional)
When brand setting productionLotsEnabled is enabled, a Create Lot button appears on Posted Production Events (/production/events/:eventId/create-lot).
How Lot Packing works
- Open the posted Production Event and click Pack Lots / Create Batch (Create Batch).
- For each produced output item, allocate bulk produced quantity into:
- Pre-defined Item Packages (standardized box/tray weights), or
- Dynamic-weight boxes/containers with auto-calculated expiry dates.
- Save and print barcode/QR lot labels for cold-room storage and downstream FEFO picking during Orders to Fulfill dispatches.
- Partial packing rule: You do not need to pack 100% of the event’s output. Any unpacked quantity stays available in bulk kitchen stock and does not affect the event’s
Postedstatus.
Once a live Lot/Batch allocates quantity from a Production Event, that event cannot be reversed until all linked live batches are soft-deleted first.
Stage 5 Details
5. Reverse & Repost a Posted Event
If an incorrect yield, wrong operational date, or missed ingredient adjustment is discovered after posting, authorized supervisors can reverse the event instead of creating manual adjustments.
Reversal preconditions & effect
- Check Linked Lots / Batches: Lyncs strictly blocks reversal if any live Lot/Batch allocates stock from the posted event. Navigate to Lots / Batches and soft-delete those dependent batches before continuing.
- Coordinate ERP state: If the event’s output lines already finished syncing into SAP, alert Accounting first (Production Accounting Sync) so SAP Production Orders remain reconciled.
- Click Reverse Event (Production Event Reopen):
- Generates offsetting reversal movements canceling the event’s
PRODUCTION_INandPRODUCTION_OUTledger impact. - Returns the Production Event status from
Posted -> Submitted(and thenReopen -> Draftif lines must be edited).
- Generates offsetting reversal movements canceling the event’s
- Correct the quantities or ingredients, submit again (passing the 25% / 50% cost variance checks), and Post (Production Event Post).
Stage 6 Details
6. SAP 5-Step Production Order Sync & Hold
Lyncs Accounting Sync translates each Posted Production Event into ERP manufacturing transactions automatically per output SKU (productionAccountingContract.ts).
SAP Business One — 5-Step Sequence per Output Item
For tenants integrated with SAP, one SAP Production Order is created per output item line referencing the corresponding SAP ProductTrees BOM (BaseType = 202):
CREATE_PRODUCTION_ORDER— creates the header Production Order in Planned state.RELEASE_PRODUCTION_ORDER— releases the SAP Production Order for material execution.CREATE_ISSUE_FOR_PRODUCTION— posts raw ingredient consumption (PRODUCTION_OUT) against the SAP Order.CREATE_RECEIPT_FROM_PRODUCTION— posts finished-good receipt (PRODUCTION_IN) against the SAP Order.CLOSE_PRODUCTION_ORDER— closes the completed Production Order in SAP cleanly.
QuickBooks Online / Desktop tenants: Each posted output syncs as a single
CREATE_INVENTORY_ADJUSTMENTentry instead of a 5-step Production Order.
Manual Retry & Hold / Ignore rules
- Retry Sync (Production Accounting Sync): Replays failed or pending sync steps cleanly from the checkpoint step.
- Hold / Ignore Sync (Production Accounting Sync Ignore): Allows an Accounting Admin to place an unsynced output line on permanent Hold after entering a mandatory reason (
>= 3characters). Holding is blocked once a sync job is already in-flight or completed in ERP.