# Process manufacturing: formulas, batches and lots with expiry

> Formulas with tolerances and yield, batches weighed from lots by earliest expiry, finished lots held for QC, and lot genealogy for recalls.

URL: https://daftiq.com/features/manufacturing/batches-and-formulas (last updated 2026-12-03)

- All features of this group: [Manufacturing](https://daftiq.com/features/manufacturing)
- Module page: [Manufacturing](https://daftiq.com/marketplace/manufacturing)
- Previous: [Carton and Pallet Packing with SSCC Labels](https://daftiq.com/features/manufacturing/packing-and-labels)
- Next: [Garment Manufacturing Software: Styles to Cartons](https://daftiq.com/features/manufacturing/garment-manufacturing)

For food, pharma, chemical and cosmetics plants, Daftiq runs production by formula and batch. A formula lists one batch's ingredients with tolerances, expected yield and shelf life. A batch weighs ingredients from lots, earliest expiry first, records readings and puts the finished lot on QC hold. QC pass releases it; QC fail writes it off. Every lot keeps its genealogy.

- **Screens:** Batches, Formulas, Lots & expiry (Manufacturing menu)
- **Weighing:** From lots, earliest expiry first; expired, held or rejected lots are never used
- **Tolerance:** Each ingredient within its tolerance % before the batch can finish
- **QC hold:** Finished goods wait in a "QC hold" warehouse until QC pass
- **Module:** [Manufacturing](https://daftiq.com/marketplace/manufacturing)

## How do I write a formula?

1. Open Manufacturing → Formulas and click **New formula**. Give it a code and name and choose the product it makes.
2. Enter the batch size, the expected yield % and the shelf life in days.
3. Add each ingredient with its quantity per batch and a tolerance %.
4. Add the mixing steps: an instruction, a target (for example "75 °C") and whether a reading must be recorded.
5. Save. Daftiq keeps a [bill of materials](https://daftiq.com/features/manufacturing/bills-of-materials) for the formula: it makes batch size x expected yield of the product from the ingredients.

## How does a production batch run?

1. On **Batches**, click **New batch**, choose the formula, how many times the formula to make and the warehouse. Daftiq confirms one [manufacturing order](https://daftiq.com/features/manufacturing/manufacturing-orders) for the expected output.
2. Under **Weighing**, enter the weight of each ingredient. Daftiq takes it from the ingredient's lots, earliest expiry first, splitting over lots when needed. It refuses more than the target plus the tolerance. An ingredient without lots is weighed from stock.
3. Under **Steps and readings**, record each reading, for example temperature or pH.
4. Enter the output made and click **Finish batch and hold for QC**. Every ingredient must be within tolerance. The order consumes the actual weights, produces the actual output and posts its journals like any order.
5. The finished lot gets the batch number and an expiry of today plus the shelf life, and waits in the QC hold warehouse.
6. The QC person enters notes (lab results) and clicks **QC pass: release**, which moves the lot's stock to the batch warehouse, or **QC fail: reject**, which writes what is left off as scrap with the reason "QC rejected".

_Stock in the QC hold warehouse cannot be sold, transferred or used until it is released. Only QC release, the QC-fail scrap or reversing the batch's order can take it out. **Print batch record** gives the full record: inputs by lot, readings, yield and QC._

## How do lots and expiry work for raw materials?

On **Lots & expiry**, click **Receive a lot** to give a lot number and expiry date to raw material that is in stock and not yet in a lot (Daftiq refuses more than that). Batches then use these lots earliest-expiry-first. Search for a lot or product and open it to see its genealogy: backwards, the batch that made it and the ingredient lots weighed into it; forwards, the batches that used it and the lots they made. That is the trail a [recall](https://daftiq.com/features/quality/product-recalls) needs.

## What posts to stock and the books?

| Event | Stock | Books (with Accounting) |
| --- | --- | --- |
| Finish batch | Ingredients out by actual weight; output into QC hold | Production journal of the order (work in progress, finished goods, variance) |
| QC pass | Lot moved from QC hold to the batch warehouse | No new journal |
| QC fail | What is left written off as scrap | Scrap: Dr scrap expense, Cr Inventory |

## What comes before and after?

Before: ingredients are bought through [procurement](https://daftiq.com/features/procurement) and received into [inventory](https://daftiq.com/features/inventory), then given lot numbers here. After: released lots are [packed with labels](https://daftiq.com/features/manufacturing/packing-and-labels), sold, and costed in [production costing](https://daftiq.com/features/manufacturing/production-costing). Batch output and yield variance show in the [production reports](https://daftiq.com/features/manufacturing/production-reports).

## Frequently asked questions

### What is FEFO and does Daftiq use it?

First expired, first out: the lot that expires soonest is used first. Daftiq weighs ingredients this way and never uses expired, held or rejected lots.

### Can a batch finish if an ingredient is short?

No. Every ingredient must be weighed within its tolerance before Finish works, and weighing more than target plus tolerance is refused.

### Can held stock be sold by mistake?

No. Stock in the QC hold warehouse cannot be sold, transferred or consumed until QC releases it.

### How is the expiry of the finished lot set?

It is the finish date plus the formula's shelf life in days, and the lot number is the batch number.

### How do I trace a lot for a recall?

Open the lot from Lots & expiry. It shows the batch that made it with its ingredient lots, and the batches and lots that used it.

## In this group: Manufacturing

- [Bill of Materials (BOM) Software](https://daftiq.com/features/manufacturing/bills-of-materials)
- [Manufacturing Orders: Make, Reserve, Produce](https://daftiq.com/features/manufacturing/manufacturing-orders)
- [Scrap and Unbuild Orders in Manufacturing](https://daftiq.com/features/manufacturing/scrap-and-unbuild)
- [Work Centres: Capacity, Hours and Rates](https://daftiq.com/features/manufacturing/work-centres)
- [Shop-Floor Tablet for Factory Operators](https://daftiq.com/features/manufacturing/shop-floor)
- [Production Board: Scheduling and Capacity](https://daftiq.com/features/manufacturing/production-board)
- [MRP Planning: What to Make and Buy](https://daftiq.com/features/manufacturing/mrp-planning)
- [Master Production Schedule (MPS)](https://daftiq.com/features/manufacturing/master-production-schedule)
- [Production Costing: Actual vs Standard Cost](https://daftiq.com/features/manufacturing/production-costing)
- [Manufacturing Accounting: WIP and Month Close](https://daftiq.com/features/manufacturing/manufacturing-accounting)
- [Job Work and Subcontracting with Gate Passes](https://daftiq.com/features/manufacturing/job-work)
- [Job Shop Software for Steel Fabrication](https://daftiq.com/features/manufacturing/job-shop)
- [Production Reports and Plant Dashboard](https://daftiq.com/features/manufacturing/production-reports)
- [Machine Monitoring and OEE Software](https://daftiq.com/features/manufacturing/machines-and-oee)
- [Machine Maintenance Software: Preventive, Repair](https://daftiq.com/features/manufacturing/maintenance-management)
- [Mould and Die Life Tracking Software](https://daftiq.com/features/manufacturing/tools-and-moulds)
- [Factory Energy Costing: Electricity, Gas per Unit](https://daftiq.com/features/manufacturing/utilities-and-energy)
- [Carton and Pallet Packing with SSCC Labels](https://daftiq.com/features/manufacturing/packing-and-labels)
- [Garment Manufacturing Software: Styles to Cartons](https://daftiq.com/features/manufacturing/garment-manufacturing)
- [Engineering Change Orders (ECO) for BOMs](https://daftiq.com/features/manufacturing/engineering-changes)
- [AI for Manufacturing: Planner, Shortages, QC](https://daftiq.com/features/manufacturing/manufacturing-ai-copilot)
- [Equipment Failure Prediction and Safety AI](https://daftiq.com/features/manufacturing/asset-and-safety-ai)

## Related pages

- [Bills of materials](https://daftiq.com/features/manufacturing/bills-of-materials)
- [Packing and labels](https://daftiq.com/features/manufacturing/packing-and-labels)
- [Product recalls by lot](https://daftiq.com/features/quality/product-recalls)
- [Lots, serials and expiry in inventory](https://daftiq.com/features/inventory/lots-serials-expiry)
- [Daftiq for manufacturers](https://daftiq.com/industries/manufacturing)

## Run batches with lots, tolerances and QC hold

Write one formula, receive your ingredient lots and run a batch. See the [Manufacturing module](https://daftiq.com/marketplace/manufacturing), the [Quality module](https://daftiq.com/marketplace/quality) and all [manufacturing features](https://daftiq.com/features/manufacturing).

[Create a free account](https://daftiq.com/register) · [Book a demo](https://daftiq.com/book-demo) · [Pricing](https://daftiq.com/pricing)
