# Production: recipes, output, and staged production

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

Turn materials into finished goods with a recipe and cost, then for a factory, work per stage with piece-rate wages, makloon, and the Production Board.

Production turns raw materials into finished goods. The stock of materials goes down, the stock of finished goods goes up, and the cost of the finished goods is worked out from the materials used. A recipe keeps the materials and the yield so you do not retype them.

This is an extra feature. If its menu is missing, contact the Vende team to switch it on. Splitting one sack into small bags is in [Repacking goods into another pack](https://vende.id/docs/stok/repack?lang=en).

## 1. Make the recipe

1. Open **Master Data → Production Recipes**, then press **New Production Recipe**.
2. Fill the **Name**, the **Finished product**, and the **Yield**, which is how many finished goods one run of the recipe gives.
3. Under **Materials per recipe**, add every material with its quantity for one run of the recipe.
4. Save. The cost per finished item is the value of the materials divided by the yield.

## 2. Recording production output

1. Open **Transactions → Productions**, then press **New Production**.
2. Choose the **Recipe** and fill the yield. The materials are worked out in proportion, for example a yield of two runs uses twice the materials.
3. Finished goods that use batches: create a new batch with its expiry date. See [Batches and expiry dates](https://vende.id/docs/stok/batch-dan-kedaluwarsa?lang=en).
4. Save. The materials go down and the finished goods enter the stock with their cost.

Costs such as gas and electricity are not in the recipe. Record them as monthly expenses.

## Staged production

Staged production is an extra feature. If its menu is missing, contact the Vende team to switch it on.

For a factory, production is done stage by stage by several workers, with piece-rate wages, makloon, and a board for the factory floor. The cost of the finished goods is the materials plus wages, factory costs, and makloon.

1. **Recipe and stages**: in the recipe, fill the **Production stages** in order, for example Peel, Fry, and Pack. Fill the **Piece-rate wage per unit** if that stage is paid per output. Turn on **Makloon** if the stage is done outside.
2. **Workers**: register the workers in **Master Data → Production Workers**. A factory that uses machines and moulds registers them in **Master Data → Machines & Moulds** (see [Machines, moulds and shifts](#machines-moulds-and-shifts)).
3. **Production order**: open **Transactions → Production Orders**, press **New Production Order**, choose the **Recipe**, fill the **Planned quantity** and the target date. The order shows on **Transactions → Production Board** straight away. For a customer's order, open it in **Transactions → Sales Orders** and press **Create Production Orders**: one production order for each goods line with a recipe, and the order shows how far its goods have come.
4. **Output**: on the Production Board, record every worker's good and spoiled output per stage with **Save output**, together with the machine, mould and shift when there are any. The wages are recorded.
5. **Receive the output**: on the order's page, press **Receive Goods**, fill the **Finished goods** (and the batch number if any), then **Put into the warehouse**. Spoiled materials go in the **Spoiled materials** section, and scrap or leftovers that can be used again (for example plastic regrind) are weighed in the **By-products** section.
6. **Pay wages and makloon**: through **Transactions → Wages & Makloon Payments**.
7. **Factory costs**: fill **Transactions → Monthly Factory Costs** (**Fixed wages** and **Factory costs (overhead)**). That month's costs are shared over the finished goods that came in that month, in proportion to their cost.

**By-products** are other goods that came out when the output was received. Pick the item (a stock item, without batches or serial numbers), enter the quantity, and fill **Value per base unit** or leave it empty to use the item's current cost. The item goes into the stock of the order's warehouse at that value, and the value is taken off the cost of the finished goods (it cannot be more than the material cost of that receipt). On the order's page, the **By-products** section shows them per receipt, and cancelling the receipt takes them out of stock too. An example is in the [Plastic factory guide](https://vende.id/docs/panduan/pabrik-plastik?lang=en#scrap-and-regrind).

### Machines, moulds and shifts

A factory that uses machines and moulds registers them in **Master Data → Machines & Moulds**. Press **Create Machine or Mould**, pick the **Type** and fill in the name:

- **Machine**: fill in the **Tonnage** (clamping force in tons) if you have it, for example 150.
- **Mould**: fill in the **Cavities**, which is how many goods one shot makes. A two-cavity bucket mould takes 2.
- **Installed on** is optional. When the extra feature **Fixed Assets** is on, pick its **Fixed asset**: the price and depreciation stay in Fixed Assets, never recorded twice.
- Switch **Active** off when the machine or mould is no longer used. It is not offered on the Production Board any more, its old work results stay, and its type cannot be changed once created.

On the Production Board and in **Receive Goods** of a one-stage order, a work result has the fields **Machine**, **Mould** (only shown when the shop has active ones) and **Shift**. The shift is written by you, for example Shift 1 or Morning, and its list remembers the ones used before. All three can be left empty and change no wage or cost. Name the mould only at the stage that moulds (for example Injection), because its shots are counted from every work result that names it. Work back from makloon was made elsewhere, so it has none of them.

Open a machine or mould from the list to see two tabs:

- **Maintenance history**: press **Create Maintenance**, fill in the date, the type (**Routine maintenance** or **Repair**) and the work done. When its cost is already recorded under **Transactions → Finance → Expenses** (category Perawatan Mesin or Perawatan Cetakan), pick that expense: the amount is read from it, so it is never recorded twice.
- **Use**: the work results that name the row, with the order, stage, shift and worker. In the list, **Pieces made** is the good and rejected goods of those work results (in the base unit; a mould counts shots from both), and the **Shots** of a mould are those pieces divided by its cavities.

The **Worker Output & Wages** report has the filters **Machine**, **Mould** and **Shift** (shown once some are registered or written). With a filter, the report lists only the work made with it, and the Paid and Not yet paid columns are left out because wages are paid per worker. An example is in the [Plastic factory guide](https://vende.id/docs/panduan/pabrik-plastik?lang=en#machines-moulds-and-shifts).

Goods that are good at one stage but not yet taken by the next when the order finishes become a **leftover between stages**. Another order for the same goods can use it with **Take leftover**, and its wages move with it. A leftover that will not be used is thrown away with **Discard leftover**, and becomes a Stock Loss. Every leftover shows in **Transactions → Stage Leftovers**.

An order that is wrong from start to end is cancelled with **Delete everything** in the **More** menu of the order's page. It is refused if the wages or makloon were already paid, the month is closed, or the leftover was taken by another order. See the full example in the [Food producer guide](https://vende.id/docs/panduan/pabrik-makanan?lang=en) and quality checks in [Production QC](https://vende.id/docs/stok/qc-produksi?lang=en).
