# Pharmaceutical and herbal medicine factory guide

Section: Guides by business type. Address: https://vende.id/docs/panduan/pabrik-obat?lang=en

A learning path for a medicine or jamu factory, new or running: recipes, batches, QC, warehouses, wholesaler orders, practice, opening balances.

This guide is for the team setting up Vende at a small to mid-size factory of medicines, jamu or herbal products, which makes its goods from active materials and excipients and sells them to wholesalers (PBF), pharmacies and drugstores. It has two parts: [A new business](#a-new-business) for a factory just starting, with no stock, receivables or payables from before, and [A running business](#a-running-business) for one moving to Vende, with team practice and opening balances. The example is **Pabrik Herbal Waras**. The names of the business, suppliers and people and all the figures are made up.

What the factory looks like:

- **Product**: Tablet Herbal Temulawak (a curcuma herbal tablet), sold per strip (10 tablets) or per carton (100 strips), with a batch number and an expiry date for every production run. The sample shop in Vende also makes Sirup Herbal Batuk 100 ml (500 bottles per batch) in the stages Weighing and Mixing, Bottle Filling and Labelling, and Carton Packing.
- **Materials**: temulawak extract, lactose and magnesium stearate from a materials supplier, plus foil strips and labels and leaflets from a packaging supplier. All are bought with purchase notes, in cash or on credit.
- **Warehouses**: Gudang Bahan (materials), Gudang Produksi, Gudang Barang Jadi (finished goods) and Gudang Retur (returns).
- **Production**: four stages. Weighing and Mixing is done by a fixed-wage operator; Granulating and Tableting, Strip Packing and Carton Packing are done by piece-rate workers. Every batch is checked by QC before it is sent out.
- **Selling**: wholesalers and pharmacies order, the goods go out with delivery notes, and the bills are paid on credit.

Work through it from the top. Every step names its menu, who does it, what changes afterwards, and an example with figures.

The features in this guide come with the Pharmaceutical and herbal medicine factory business type package. The shop's features show under **Settings → Subscription**, section **This shop's features**. If a menu is missing, contact the Vende team. This package also holds Invoice mode, a screen for writing notes to wholesalers and pharmacies like an invoice by keyboard. See [Making a note in invoice mode](https://vende.id/docs/jualan/mode-faktur?lang=en). A new shop with this package opens Invoice mode when you press **New sale**, on a phone too; change it in **Settings → Till display** if you prefer the till.

Vende records the materials, production, batches, QC results and sales. It does not replace the quality documents that CPOB or CPOTB require (the master documents, equipment qualification and so on): keep those as usual, then write their numbers and results in Vende. Vende prepares the Batch Production Record as a PDF from the production and QC data, ready to sign.

> **Tip:** Lost on a page? Press the **?** button at the top of that page. A short tour shows every field, on the Production Board too.

## A new business

### Who does what

This package holds six users, the owner included.

| Part of the business | Job title in Vende | What they do and open |
| --- | --- | --- |
| Owner or responsible person | **Owner** | Every menu, also suppliers, opening balances and **Reports → Profit & Loss** |
| Head of production and warehouse, also QC | **Warehouse Admin** | Products, batches, recipes, production workers, production orders, receiving output, stock transfers, **Transactions → Production QC**, monthly factory costs, **Reports → Stock** and **Reports → Worker Output & Wages** |
| Production supervisor | **Production** | The Production Board: the output of every worker per stage |
| Purchasing admin | **Purchasing Admin** | Suppliers, purchase notes, receiving goods |
| Sales admin | **Head Cashier** | Customers, price groups and credit limits, orders, delivery notes, notes |
| Finance admin | **Finance Admin** | Wholesaler, pharmacy and supplier payments, wages, expenses, **Reports → Receivables**, **Reports → Payables**, **Reports → Cash Balance** |

The courier driver needs no account: the delivery notes are printed, and the results are recorded from that paper. Every role is explained in [Roles and permissions](https://vende.id/docs/pengaturan/peran-dan-hak-akses?lang=en).

### 1. Shop details and users

Done by the **Owner**: fill in **Settings → Shop** (name, address, WhatsApp, logo, the business licence or marketing authorisation number in the note footer if needed), then create the accounts in **Settings → Users** with the **Job title** of the table above. See [Adding and managing users](https://vende.id/docs/pengaturan/menambah-pengguna?lang=en).

The people at Pabrik Herbal Waras: Bu Ratih (owner and responsible person), Pak Hendra (head of production and QC, Warehouse Admin), Bu Sari (supervisor, Production), Mas Dimas (purchasing admin, Purchasing Admin), Mbak Putri (sales admin, Head Cashier) and Bu Lilis (finance admin, Finance Admin).

### 2. Master data

A shop of this business type already has the product categories Finished Products, Active Ingredients and Herbal Materials, Excipients, Packaging, and Labels and Leaflets, the units Strip, Tablet, Bottle, Sachet, Box and Carton, and the expense categories Machine Maintenance, Equipment Calibration, Laboratory Tests, and Permits and Certification. A factory shop also starts with four warehouses. See [Managing warehouses](https://vende.id/docs/stok/gudang?lang=en).

#### Materials and finished goods with batches

**Warehouse Admin** in **Master Data → Products**:

1. Create the materials with the **Type** Raw Material: Ekstrak Temulawak (temulawak extract, Kilogram, cost Rp 450.000), Laktosa (lactose, Kilogram, Rp 45.000), Magnesium Stearat (Kilogram, Rp 120.000), Alufoil Strip (foil strip, Pcs, Rp 150) and Etiket dan Brosur (label and leaflet, Pcs, Rp 100).
2. Create the finished good Tablet Herbal Temulawak: **Category** Finished Products, base unit Strip, **Selling Price** Rp 6.500, and under **Other Units** Carton holding 100 Strip.
3. Under **Tracking**, switch on **Track batches & expiry** for the finished good and for the extract, then fill in **Shelf life** 3 **Years** for the finished good, so every production run gets a batch number and an expiry date.

See [Batches and expiry dates](https://vende.id/docs/stok/batch-dan-kedaluwarsa?lang=en).

#### Production recipes and stages

**Warehouse Admin** in **Master Data → Production Recipes**:

1. Create a recipe with the **Name** Tablet Herbal Temulawak, the **Finished product** Tablet Herbal Temulawak and the **Yield** 1.000.
2. Under **Materials per recipe**, add 2,5 Kilogram of Ekstrak Temulawak, 2 Kilogram of Laktosa, 0,1 Kilogram of Magnesium Stearat, 1.000 Alufoil Strip and 1.000 Etiket dan Brosur.
3. Under **Production stages**: Timbang dan Campur (weighing and mixing) without a wage (a fixed-wage operator), Granulasi dan Cetak (granulating and tableting) with a **Piece-rate wage per unit** of Rp 60, Kemas Strip (strip packing) Rp 100 and Kemas Dus (carton packing) Rp 40.
4. Press **Create**.

The materials of 1.000 strips cost Rp 1.125.000 + Rp 90.000 + Rp 12.000 + Rp 150.000 + Rp 100.000 = Rp 1.477.000, so Rp 1.477 a strip. With Rp 200 of piece-rate wages, the cost before factory costs is Rp 1.677 a strip.

![The Production Recipes list with the product made, the yield and the number of ingredients](https://vende.id/images/docs/en/panduan/pabrik-obat-resep-produksi.webp "Production Recipes: the ingredients and yield of each recipe")

#### Production workers

**Warehouse Admin**: in **Master Data → Production Workers**, list Pak Anto (granulating and tableting), Bu Yuni (strip packing) and Mbak Rina (carton packing), and also Pak Joko (weighing and mixing) so his output is recorded, though his stage has no piece-rate wage.

#### Groups, prices and credit limits

1. **Head Cashier**: in **Master Data → Customer Groups**, create the group PBF with a **Credit Limit** of at most Rp 20.000.000 and the group Apotek with a limit of Rp 5.000.000.
2. **Warehouse Admin**: open Tablet Herbal Temulawak, tab **Price List**, add a price in the unit Strip: Rp 5.500 for PBF and Rp 6.500 for Apotek.
3. **Head Cashier**: in **Master Data → Customers**, create PBF Mitra Farma in the PBF group (45 days to pay) and Apotek Sehat Sentosa in the Apotek group (30 days to pay).

See [Prices per customer group](https://vende.id/docs/produk-dan-harga/harga-kelompok-pelanggan?lang=en) and [Managing customer receivables](https://vende.id/docs/pelanggan/piutang-pelanggan?lang=en#credit-limit).

#### Suppliers and cash accounts

- **Purchasing Admin**: in **Master Data → Suppliers**, list CV Simplisia Nusantara (30 days to pay) and Toko Kemasan Farma (14 days to pay).
- **Owner**: in **Master Data → Cash Accounts**, make sure Bank BCA and Kas Tunai Pemilik are there.

### 3. Starting capital and buying materials

1. The **Owner** records capital of Rp 50.000.000 into Bank BCA in **Transactions → Finance → Owner's Capital**.
2. The **Purchasing Admin** records every supplier's note in **Transactions → Purchases**, into the **Warehouse** Gudang Bahan. See [Recording a purchase note](https://vende.id/docs/pembelian/mencatat-pembelian?lang=en).

- The CV Simplisia Nusantara note, on 30 days' credit: 10 Kilogram of Ekstrak Temulawak × Rp 450.000 = Rp 4.500.000, 10 Kilogram of Laktosa × Rp 45.000 = Rp 450.000 and 1 Kilogram of Magnesium Stearat × Rp 120.000 = Rp 120.000, so Rp 5.070.000. For the extract, open the line's details and fill in the **Batch number** and **Expiry** from the supplier's pack. The note is not paid yet, so it becomes a payable.
- The Toko Kemasan Farma note, paid in full from Bank BCA: 4.000 Alufoil Strip × Rp 150 = Rp 600.000 and 4.000 Etiket dan Brosur × Rp 100 = Rp 400.000, so Rp 1.000.000. Fill in **Payment Now** Rp 1.000.000.

Afterwards the materials are in Gudang Bahan, Bank BCA goes down by Rp 1.000.000, and Rp 5.070.000 is owed to CV Simplisia Nusantara with its due date.

When a supplier delivers in parts, switch off **All goods have been received** when recording the note, then press **Receive Goods** on that note each time goods arrive. Ordering from the supplier first with a purchase order (PO) uses the extra feature Purchase orders (PO), in **Transactions → Purchase Orders**. See [Receiving goods that arrive in parts](https://vende.id/docs/pembelian/menerima-barang?lang=en) and [Purchase orders](https://vende.id/docs/pembelian/pesanan-pembelian?lang=en).

### 4. One batch from materials to customer

| Time | Work | Who |
| --- | --- | --- |
| Monday morning | Materials to Gudang Produksi, production order of 3.000 strips | **Warehouse Admin** |
| Monday midday | Output per stage | **Production** |
| Monday afternoon | Receiving output with a batch | **Warehouse Admin** |
| Tuesday | QC check of the batch | **Warehouse Admin** |
| Wednesday | Wholesaler and pharmacy orders, then delivery notes | **Head Cashier** |
| Wednesday afternoon | Notes from the delivery notes | **Head Cashier** |

#### Morning: materials and production order

**Warehouse Admin**:

1. Move the materials to be used that day from Gudang Bahan to Gudang Produksi in **Transactions → Stock Transfers**: 7,5 Kilogram of Ekstrak Temulawak, 6 Kilogram of Laktosa, 0,3 Kilogram of Magnesium Stearat, 3.000 Alufoil Strip and 3.000 Etiket dan Brosur. Production always takes its materials from the order's warehouse.
2. In **Transactions → Production Orders**, create an order, pick the **Recipe** Tablet Herbal Temulawak and the **Warehouse** Gudang Produksi, enter the **Planned quantity** 3.000 (three runs of the recipe) and save. The order shows on the Production Board straight away.

#### Output on the Production Board

**Production** (Bu Sari), on a tablet or phone in the production room: open **Transactions → Production Board** and record Pak Joko's 3.000 at Timbang dan Campur, Pak Anto's 3.000 at Granulasi dan Cetak, Bu Yuni's 3.000 at Kemas Strip and Mbak Rina's 3.000 at Kemas Dus, each with **Save output**.

The wages recorded: Pak Anto 3.000 × Rp 60 = Rp 180.000, Bu Yuni 3.000 × Rp 100 = Rp 300.000 and Mbak Rina 3.000 × Rp 40 = Rp 120.000. Pak Joko gets no piece-rate wage; his salary goes into Monthly Factory Costs in part 7.

#### Afternoon: receiving output with a batch

**Warehouse Admin**: on the order, press **Receive Goods**, enter the **Finished goods** 3.000, leave the **Batch number** and **Expiry** filled in from the production date and the shelf life (or type the batch number of the factory's quality system, for example THT-2611-01), tick **Finish this production order**, then press **Put into the warehouse**.

Foil that tore while packing, for example 30 pieces, is recorded under **Spoiled materials** at Receive Goods: it leaves stock too and its value goes into the cost of the goods.

The materials decrease and 3.000 strips of batch THT-2611-01 enter Gudang Produksi. Goods that are good at one stage but not yet taken by the next when the order is finished become a **leftover between stages**, shown in **Transactions → Stage Leftovers**. An order that is wrong from top to bottom is undone with **Delete everything** in the **More** menu of its page.

![The Batches list with batch number, expiry date, remaining stock and date received](https://vende.id/images/docs/en/panduan/pabrik-obat-daftar-batch.webp "Master Data, Batches: what is left of each batch and when it expires")

#### QC check and the move to Gudang Barang Jadi

1. **Warehouse Admin**: open **Master Data → Batches**, then press **QC check** on batch THT-2611-01.
2. Fill in **pH** if measured, pick **No leak** and **Seal intact** according to the strip check, then pick the **Result** **Passed** or **Rejected**. Write the important laboratory results, for example the active content and the germ count, in **Note**. Save.
3. A **Rejected** batch is held back from sales and delivery notes, which skip it. A batch that passed is moved to Gudang Barang Jadi in **Transactions → Stock Transfers**.
4. **Warehouse Admin**: press **Print → Print Batch Record** on the same batch's row. The PDF holds the materials with their batch numbers, the stages and who did them, the QC results and the yield; Production, QC and the Responsible person sign it. See [Batches and expiry dates](https://vende.id/docs/stok/batch-dan-kedaluwarsa?lang=en).

Every check per day is in **Transactions → Production QC**. See [Production QC per batch](https://vende.id/docs/stok/qc-produksi?lang=en).

![The Production QC page with the checks of each production batch](https://vende.id/images/docs/en/panduan/pabrik-obat-qc-produksi.webp "Production QC: the checks of each batch")

#### Wholesaler and pharmacy orders, then delivery notes

**Head Cashier**:

1. In **Transactions → Sales Orders**, press **New Sales Order** and record the order of PBF Mitra Farma, 1.000 Strip of Tablet Herbal Temulawak: 1.000 × Rp 5.500 = Rp 5.500.000, and of Apotek Sehat Sentosa, 200 Strip: 200 × Rp 6.500 = Rp 1.300.000. The prices follow the customer group.
2. Open **Transactions → Delivery Runs**, press **Make Delivery Run** and pick **Sales orders**. Tick both orders, then pick **Make Delivery Run** with the **Driver name** and the courier's vehicle. Press **Print & make delivery notes**: the stock of the batch that passed leaves, the one nearest to expiry first.
3. In the afternoon, mark both stops **Delivered**.

See [Delivering with the daily delivery run](https://vende.id/docs/jualan/daftar-antar-harian?lang=en).

#### Billing what was delivered

**Head Cashier**: on each order, press **Make Note from Delivery Notes**, then **Make Draft Note**. Press **Pay**, **Unpaid**, then **Save transaction**.

Afterwards PBF Mitra Farma owes Rp 5.500.000 (due in 45 days) and Apotek Sehat Sentosa Rp 1.300.000 (30 days). A note over the credit limit of its group is held until **Reason for passing the credit limit** is filled in. The stock is down to 3.000 − 1.200 = 1.800 strips.

### 5. Receivables and collection

- The **Finance Admin** records the payments that come in under **Transaction Details → Sale Payments**, for example PBF Mitra Farma's Rp 5.500.000 by transfer into Bank BCA. See [Paying a note](https://vende.id/docs/jualan/pembayaran-nota?lang=en).
- The **Finance Admin** reads **Reports → Receivables** every week.

### 6. Wages and paying suppliers

1. The **Finance Admin**, every Saturday: in **Transactions → Wages & Makloon Payments**, pays the wages of Pak Anto, Bu Yuni and Mbak Rina, as much as is still owed.
2. The **Finance Admin** pays the supplier notes that are due under **Transaction Details → Purchase Payments**.

### 7. Factory costs and expired goods

1. The **Finance Admin** records Pak Joko's salary Rp 3.000.000, the calibration of the balance Rp 400.000 (category Equipment Calibration) and a laboratory test Rp 600.000 (category Laboratory Tests) in **Transactions → Finance → Expenses**.
2. The **Warehouse Admin** fills in **Transactions → Monthly Factory Costs**: **Fixed wages** Rp 3.000.000 and **Factory costs (overhead)** Rp 1.000.000.

That month's costs are divided over the finished goods that entered the warehouse that month, in proportion to their cost.

Medicines that expired, were recalled or destroyed are taken out by the **Warehouse Admin** in **Transactions → Stock Adjustments**, direction Out, category Expired or Damaged, with their batch. Their value becomes a loss in the Profit & Loss. See [Stock adjustments](https://vende.id/docs/stok/penyesuaian-stok?lang=en).

### 8. Reports per job title

| Report | What it holds | Opened by | When |
| --- | --- | --- | --- |
| **Reports → Stock** | Materials and finished medicines per batch and warehouse | **Warehouse Admin** | Every day |
| **Reports → Worker Output & Wages** | Output per worker per stage and their wages | **Warehouse Admin** | Every Saturday |
| **Reports → Receivables** | Every wholesaler's and pharmacy's bills and their age | **Finance Admin** | Every week |
| **Reports → Payables** | The bills of the materials and packaging suppliers | **Finance Admin** | Every week |
| **Reports → Cash Balance** | Money in every cash account | **Finance Admin** | Every day |
| **Reports → Profit & Loss** | Sales, cost of goods sold, wages and expenses | **Owner** | Every month |

### 9. Checklist

- **Every day**: Production records the output, the Warehouse Admin receives the output with its batch and checks QC, the Head Cashier makes delivery notes and notes from what was delivered.
- **Every week**: the Finance Admin pays the piece-rate wages and reads Receivables and Payables. The Warehouse Admin checks the batches close to expiry.
- **Every month**: the Warehouse Admin fills in Monthly Factory Costs and counts the materials. The Owner reads the Profit & Loss.

## A running business

This part is for the team moving a running factory of medicines or jamu to Vende: it already has materials and finished medicines per batch, wholesalers and pharmacies with open bills, and payables to suppliers. The order is always the same:

1. Fill in the master data.
2. Practise transactions until every part is familiar.
3. Empty the practice transactions.
4. Enter the opening balances on the starting day.
5. Start for real.

The opening balances are deliberately entered last, so the practice does not disturb their figures. The examples in this part use Pabrik Herbal Waras from the new business part.

### 1. Master data

Do **Who does what**, **1. Shop details and users** and **2. Master data** above. Also list every wholesaler and pharmacy that still has a bill and every supplier that is still owed. Master data stays when the practice transactions are emptied.

### 2. Practice for the team

Do it in a practice shop of the type Pharmaceutical and herbal medicine factory with all six accounts.

#### Practice 1: master data

1. **Owner**: shop details, the five users, the two suppliers.
2. Pak Hendra (Warehouse Admin): the five materials, Tablet Herbal Temulawak with batches and the Carton unit, its recipe and the four workers.
3. **Head Cashier**: the PBF and Apotek groups with their credit limits, the prices per group and the two customers.

#### Practice 2: one batch

1. **Owner**: capital of Rp 50.000.000. **Purchasing Admin**: both purchase notes, the CV Simplisia Nusantara note not paid yet and the Toko Kemasan Farma note paid in full from Bank BCA.
2. Pak Hendra and Bu Sari: the stock transfer, a production order of 3.000 strips, the output of the four stages, receiving batch THT-2611-01, then a QC check with the result Passed.
   - Check: **Reports → Stock** shows 3.000 strips of batch THT-2611-01. Opened by the **Warehouse Admin**.
3. **Head Cashier**: the orders of both customers, the delivery run, printing the delivery notes, marking them **Delivered**, then the notes, not paid yet.
4. **Finance Admin**: pay the wages of Pak Anto Rp 180.000, Bu Yuni Rp 300.000 and Mbak Rina Rp 120.000 from Bank BCA, then receive Rp 1.300.000 from Apotek Sehat Sentosa into Bank BCA.

After Practice 2 you should see:

| Report | What should show | Opened by |
| --- | --- | --- |
| **Reports → Cash Balance** | Bank BCA Rp 50.000.000 − Rp 1.000.000 − Rp 600.000 + Rp 1.300.000 = Rp 49.700.000 | **Finance Admin** |
| **Reports → Receivables** | PBF Mitra Farma Rp 5.500.000 | **Finance Admin** |
| **Reports → Payables** | CV Simplisia Nusantara Rp 5.070.000 | **Finance Admin** |
| **Reports → Stock** | Tablet Herbal Temulawak 1.800 strips of batch THT-2611-01 | **Warehouse Admin** |

#### Practice 3: opening balances

Enter the opening balances with the example in part 4 below, check as in part 5, then empty them again.

### 3. Empty the practice transactions

Done by the **Owner** in **Settings → Empty Transactions**, button **Empty All Transactions**. Notes, orders, delivery notes, delivery runs, purchases, production orders with their output, batches, QC results, wage payments, monthly factory costs, stock adjustments, payments, expenses, capital and opening balances are deleted. Products, recipes, workers, customers, groups with their prices and credit limits, suppliers, cash accounts, users and settings stay. Vende makes a full backup first. See [Emptying transactions or all data](https://vende.id/docs/pengaturan/kosongkan-transaksi?lang=en).

### 4. Opening balances

Done by the **Owner** in **Settings → Opening Balances** on the morning of the first day, with **As of** that day. First finish the production under way and pay the old piece-rate wages: Opening Balances has no field for work in progress. See [Entering opening cash, stock, receivables and payables](https://vende.id/docs/mulai/mengisi-saldo-awal?lang=en).

- **Opening Stock**: Tablet Herbal Temulawak 1.200 Strip with the **Batch number** THT-2610-03 and its **Expiry**, cost Rp 1.800; Ekstrak Temulawak 4 Kilogram with the supplier's batch number, Rp 450.000; Alufoil Strip 2.000 Pcs at Rp 150. Every batch is a row of its own.
- **Opening Receivables**: one row per unpaid wholesaler or pharmacy note, for example PBF Mitra Farma Rp 3.000.000 due in 20 days.
- **Opening Payables**: Toko Kemasan Farma Rp 300.000.
- **Opening Cash**: the money counted in every account, for example Bank BCA Rp 15.000.000 and Kas Tunai Pemilik Rp 500.000.

### 5. Check before starting

| Report | What should show | Opened by |
| --- | --- | --- |
| **Reports → Cash Balance** | The same as the money counted | **Finance Admin** |
| **Reports → Stock** | Finished medicines 1.200 strips of batch THT-2610-03, extract 4 kilograms, foil 2.000 | **Warehouse Admin** |
| **Reports → Receivables** | PBF Mitra Farma Rp 3.000.000 | **Finance Admin** |
| **Reports → Payables** | Toko Kemasan Farma Rp 300.000 | **Finance Admin** |

Different figures? The **Owner** corrects the rows in **Settings → Opening Balances** before real transactions are recorded.

### 6. Start for real

From that day every purchase of materials, production run, QC check, order, delivery note, note and payment is recorded in Vende as in the new business part, with the same checklist. In the first week the **Warehouse Admin** checks that every new batch has a QC result, and the **Finance Admin** checks that payments of old receivables reduce **Reports → Receivables**.
