Production Batches

Production batches represent a single production run of a semi-finished product. They track the full lifecycle from creation through production to completion, including material consumption, product output, and waste analysis.

Production Batches Page

The Production Batches page lists all your production runs. Each batch has a unique number in the format PB-YYYY-MM-### (e.g., PB-2025-01-001) for easy identification and traceability.

  1. Navigate to Production Batches in the sidebar menu.
  2. The list displays: Batch Number (PB-YYYY-MM-###), Status (color-coded badge), Semi-Finished Product (what is being produced), Planned Quantity, Actual Output, Waste %, and Actions.
  3. Use the status filter to show only batches in a specific state (e.g., "In Production").
  4. Click a batch number to open the batch detail page with full information about materials consumed, products created, and waste analysis.
  5. Use the search and date filters to find specific batches.

Creating a Production Batch

Creating a production batch starts a new production run for a specific semi-finished product. You define what you plan to produce, and the system tracks everything from there.

  1. On the Production Batches page, click the + (Add) button or use the New Production Batch quick action from the Dashboard.
  2. Select the semi-finished product you want to produce from the dropdown. The system will load its recipe automatically.
  3. Enter the planned quantity — how much of the semi-finished product you intend to produce in this batch (e.g., 100 kg).
  4. The system calculates the required materials based on the recipe and planned quantity, showing you what will be consumed.
  5. Add optional notes about this batch (e.g., "Rush order for Client X", "Testing new recipe variant").
  6. Optionally check Save as Template to save this batch configuration for quick reuse later.
  7. Click Create to create the batch. It will start in the Created status.

Status Workflow

Production batches follow a status workflow that tracks the batch through its lifecycle. Each status transition can trigger automatic actions like deducting materials or adding finished products to stock. You can use the default statuses or create custom statuses in Settings.

  1. Created — the batch has been created but production has not started. No materials have been consumed yet.
  2. In Production — production is underway. Depending on your status configuration, this transition may trigger material deduction (removing required materials from inventory).
  3. Completed — production is finished. This transition may trigger add products (adding the produced quantity to finished product inventory).
  4. Closed — the batch is finalized. All accounting is complete and the batch is archived. The close batch trigger finalizes all calculations.
  5. If something goes wrong, the revert_all trigger can undo all stock movements associated with the batch, returning materials and removing produced goods.
  6. To change a batch's status, open the batch detail page and click the status button or select the new status from the status dropdown.
  7. Custom statuses with custom triggers and transitions can be configured in Settings > Features > Custom Statuses.

Batch Outputs

Batch outputs define what finished products are created from this production batch. A single batch can produce multiple different products from the same semi-finished product.

  1. Open the production batch detail page.
  2. Navigate to the Outputs section.
  3. Click Add Output to add a finished product that was produced in this batch.
  4. Select the product from the dropdown.
  5. Enter the quantity produced of that product.
  6. Repeat for each different product created from this batch (e.g., a dough batch might produce 50 loaves of bread and 30 rolls).
  7. When the batch transitions to the appropriate status (typically Completed), the output quantities are added to each product's inventory.

Waste Tracking

Krafte automatically calculates waste for each production batch by comparing the planned quantity with the actual output. This helps you monitor production efficiency and identify areas for improvement.

  1. When a batch is being closed or completed, the system compares the planned quantity with the actual output quantity.
  2. The waste percentage is calculated as: `(planned - actual) / planned × 100%`.
  3. The financial loss from waste is calculated based on the cost of materials that were consumed but did not result in usable output.
  4. View waste metrics on the batch detail page in the Waste section.
  5. Aggregate waste statistics are available in the Analytics > Production Waste report, where you can track waste trends over time.

Batch Templates

If you regularly produce the same batches, templates save you time by pre-filling the batch creation form with saved configurations.

  1. When creating a new batch, check the Save as Template option before clicking Create.
  2. Give the template a descriptive name (e.g., "Weekly Bread Batch", "Standard Dough 100kg").
  3. The template saves the semi-finished product, planned quantity, and output configuration.
  4. To use a template, click Create from Template on the Production Batches page.
  5. Select a template from the list. The creation form will be pre-filled with the saved values.
  6. Adjust any values if needed (e.g., change the quantity), then click Create.
  7. You can manage (edit or delete) templates from the template list.

All Documentation