# Fabric per roll: bought by the kg, sold by the metre

Section: Stock. Address: https://vende.id/docs/stok/kain-per-rol?lang=en

Keep fabric stock per roll with its estimated length, choose the roll being cut at the till, then press Roll finished so the difference is recorded.

A fabric shop often buys fabric by the kg or by the roll and sells it by the metre. Every roll has a different length, so Vende records every roll on its own with its estimated length. The cashier chooses the roll being cut, and when a roll is really used up, the difference between the estimate and the truth is settled once.

This is an extra feature. If the **Stock per roll (fabric)** field is missing on the product form, contact the Vende team to switch it on. The full guide is [Fabric shop guide](https://vende.id/docs/panduan/toko-kain?lang=en).

## 1. Set up the fabric

1. Open **Master Data → Products**, then press **New Product**. Fill the **Name**, **Category**, **Base Unit** Metre (or Yard), and the **Selling Price** per metre.
2. In **Other Units**, add the buying unit, for example Kilogram, and fill **Contains (in base units)**, for example 4 if 1 kg is expected to give 4 metres. Fabric bought by the roll uses the unit Roll with its contents.
3. In **Tracking**, turn on **Stock per roll (fabric)**.
4. Save.

## 2. Buying fabric

Record the note in **Transactions → Purchases**, one line per roll, with the buying unit. Tap the fabric's name on the purchase line to open its details. **Roll code** stays empty so it fills in by itself (R-0001, R-0002 and so on). **Estimated roll length** comes from the quantity times what the unit contains. Type another length when the roll's label states it. See [Recording a purchase note](https://vende.id/docs/pembelian/mencatat-pembelian?lang=en).

Every roll shows in **Master Data → Fabric Rolls** with its **Estimated length** and **Left in stock**. After a few rolls are used up, Vende uses the average metres per kg of the rolls used up as the estimate of the next roll.

## 3. Selling fabric

On the sales screen, enter the fabric in metres. **Roll being cut** is the oldest roll by default. Choose another roll if a different roll is being cut.

## 4. Roll finished

Left in stock is the estimate less what was sold, so it is seldom exactly zero when the roll is used up.

1. When the last of a roll is cut, open **Master Data → Fabric Rolls**, then press the **Roll finished** icon on that roll's row.
2. Check the difference shown, choose the **Adjustment category**, then save.
3. What the stock still holds is recorded as a shortfall with a stock adjustment out at its cost. If the roll gave more than the estimate, the extra is recorded as a stock adjustment in.

A roll that is used up cannot be sold any more. Pressed by mistake? Press **Undo Roll finished** on that roll's row: the stock adjustment is deleted and the roll can be sold again. If a document was changed or cancelled after Roll finished, the status becomes **Finished, stock changed**: cancel it, then press Roll finished again.

In **Reports → Stock**, turn on **Per roll** to see what is left of every roll.
