# Production QC per batch

Section: Stock. Address: https://vende.id/docs/stok/qc-produksi?lang=en

Record the quality of every production batch against each product's parameters and limits, reject a failed batch so it is not sold, and see the QC log per day.

A factory that checks the quality of what it makes, such as a drinking water factory measuring TDS and pH, a drug factory measuring assay, tablet hardness and disintegration time, or a food or cosmetics factory measuring pH, moisture and colour, records every check per batch. A rejected batch cannot be sold.

This is an extra feature. If the **Transactions → Production QC** menu is missing, contact the Vende team to switch it on. It works with [batches and expiry dates](https://vende.id/docs/stok/batch-dan-kedaluwarsa?lang=en).

## QC parameters per product

Every product has its own check parameters. The owner or warehouse manager sets them once:

1. Open **Transactions → Production QC**, press **QC parameters**, then pick a batch-tracked product.
2. Press **Add parameter** for everything that is checked, for example Assay (%), Hardness (kp), Disintegration time (minutes), pH, Moisture (%), Colour.
3. Pick the **Type**: **Figure with limits** (fill in the **Lowest allowed** and or the **Highest allowed**, leave out the one that does not exist) or **Pass or fail** for what is judged by eye, such as colour, smell or packaging. Limits and figures may have up to 4 decimals; more than that is refused, not rounded.
4. Save. The order of the rows is the order of the fields when a check is recorded; drag a row to change it.

A product without parameters is checked as before with TDS, pH, leak and seal, so a drinking water factory does not need to set anything. Changing or removing a parameter does not change checks already recorded: every check keeps the name, unit and limits of its day.

## Recording a check

1. Open **Master Data → Batches**, then press **QC check** on the row of the batch checked. Or open **Transactions → Production QC**, press **QC check**, then pick the batch.
2. A product with parameters: fill in the figure of every parameter measured, or pick **Pass** or **Fail** for those judged by eye. The limits are written under the field. A parameter that was not measured may be left empty, but fill in at least one.
3. A product without parameters: fill in **TDS** (ppm) and **pH** when measured, then pick **No leak** or **Leaking**, and **Seal intact** or **Seal broken**.
4. **Result**: on a product with parameters, leave it empty and the result is **Passed** when every figure is within its limits, or **Rejected** when one is outside. You may also reject a batch whose figures are within limits, for example because of an unusual smell. A batch with a figure outside its limits, a leak or a broken seal can only be rejected; Vende refuses to pass it and names the parameter outside its limits, so a mistyped figure can be corrected.
5. Save.

The **QC** column of the batch list shows the latest check. A batch never checked reads Not checked.

## A rejected batch

- Sales and delivery notes pass a rejected batch over and take another batch that expires first.
- When the other batches are not enough, the note is refused with how much is held back in rejected batches. The goods are never sold as stock without a batch.
- A rejected batch can still be moved with a stock transfer or written off with a [stock adjustment](https://vende.id/docs/stok/penyesuaian-stok?lang=en) in the Damaged category. A transfer that picks no batch, such as loading a vehicle in the morning, takes the passed batches first and a rejected one last.
- A later check that passes the batch lets it be sold again.

## Raw material quarantine

A factory that does not want raw material used before it is checked switches quarantine on per product:

1. Open **Master Data → Products**, edit the raw material and switch on **Hold incoming batches (quarantine)** in the tracking section. The choice shows for products tracked per batch, and only while the Production QC feature is on. It is off by default.
2. From then on, every **new** batch of that product that comes in on a purchase or a goods receipt gets the status **Quarantine**. Batches already in the warehouse, and further deliveries of a batch number that is already known, are not held.
3. A held batch cannot be sold and cannot be taken as a production material. Its stock is not counted as usable stock at the till or in the material shortage warning. Sales and productions pass it over and take another batch that has been passed.
4. When the stock that has been passed is not enough, Vende refuses with a message naming the product, how much is still held and the batch numbers to check. The material is never taken as stock without a batch.
5. A QC check releases it, the same check as above (**QC check** in the Batch list): **Passed** makes the batch usable, **Rejected** makes it a rejected batch. There is no release without a check. When that check is deleted and no other check is left, the batch is held again.

A held batch can still be moved with a stock transfer (for example to a quarantine warehouse), returned to the supplier or written off with a stock adjustment. A transfer that picks no batch takes the passed batches first. The Batch list has a **QC** filter to show only the batches in Quarantine.

## Retained samples

Drug and food factories keep part of every batch as a retained sample to compare against if a complaint comes in. **Master Data → Retained Samples** records how much, where it is kept and until when.

1. Press **Record Sample**, then pick the **Batch** (only batches that still have stock at this branch) and **Taken from warehouse**.
2. Fill in the **Sample quantity** in the product's base unit, **Kept at** (for example Sample cabinet, shelf 2) and **Keep until**. The date is filled in one year after the batch expires and can be changed, but not to before today.
3. Save. The quantity leaves sellable stock at once through a [stock adjustment](https://vende.id/docs/stok/penyesuaian-stok?lang=en) in the **Retained sample** category (number PS/...), and its value at cost is booked as **Shop Use** expense. If the batch's stock in that warehouse is less than the sample, Vende refuses and says how much is left.

The **Status** column shows **Kept**, **Ending soon** (within the **Due Date Reminder** days in [Settings → Alerts](https://vende.id/docs/pengaturan/lonceng-dan-peringatan?lang=en#setting-the-alert-day-limits)), **Keep period over**, or **Destroyed**. The bell reminds the people who hold the sample permission every day, one notice per branch, from just before the keep period ends until the sample is marked destroyed.

Once the keep period has passed (from the day after the **Keep until** date), destroy the sample and press **Mark Destroyed**. Stock and the books do not change, because the goods left stock when the sample was recorded; only the date of destruction is kept and the reminder stops. Before the keep period is over the button waits and names the date.

The Warehouse Operator records samples; **Mark Destroyed** and **Cancel Entry** belong to the Warehouse Manager.

Made a mistake? Press **Cancel Entry**: the quantity goes back to the batch's stock and its stock adjustment is cancelled. The sample's stock adjustment cannot be changed or deleted from the Stock Adjustments menu; use **Cancel Entry**. A sample that is already destroyed cannot be cancelled, because the goods are gone. The list can be searched, filtered by status and exported to Excel. A retained sample shows in [batch tracing](https://vende.id/docs/stok/batch-dan-kedaluwarsa?lang=en#tracing-a-batch-for-a-recall) as an outgoing adjustment of that batch.

## The QC log per day

**Transactions → Production QC** groups every check per date: the time, the product and batch, the parameters with their figures (one outside its limits names the limit), TDS, pH, leak, seal, the result and who checked. Filter by date, or show only the rejected ones.

Detailed laboratory results, for example the active content or the germ count, are written in the **Note** of the check; the test sheet itself stays in the factory's quality archive.

Every check of a batch is also printed on the [Batch Production Record](https://vende.id/docs/stok/batch-dan-kedaluwarsa?lang=en), from the **Print** menu on the batch's row.

A check is not changed. When one is wrong, delete it and record it again; the batch goes back to the result of the check before.
