# How Vende keeps the books behind the scenes

Section: Reports. Address: https://vende.id/docs/laporan/cara-vende-membukukan?lang=en

Vende writes the bookkeeping itself from every note and payment, so the financial reports are always ready without you knowing debit and credit.

You only need to record what the shop does: sell, buy, receive money, pay, and spend. Every time a document is saved, Vende writes its bookkeeping record itself. This record is called a journal. All reports read from the same journals, so the figures always agree with each other.

## Example: one sale

Pak Budi buys 6 packs of Gula Pasir 1 kg at Rp 15.000 per pack and pays cash. The cost price is Rp 12.000 per pack.

When the note is saved, Vende records:

- sales go up by Rp 90.000;
- stock goes down by 6 packs, and the inventory value drops by Rp 72.000;
- that Rp 72.000 becomes cost of goods sold (COGS), the cost price of the goods that were sold;
- Rp 90.000 in money goes into the cash account.

The gross profit on this note is Rp 18.000. All of this shows at once in [Profit & Loss](https://vende.id/docs/laporan/laba-rugi?lang=en), and in the [Balance Sheet](https://vende.id/docs/laporan/neraca?lang=en) and [Cash Flow](https://vende.id/docs/laporan/saldo-kas-dan-arus-kas?lang=en#cash-flow) while those extra features are on.

## The rules Vende follows

- **Notes and payments are separate.** A sales note records what the customer owes, then a payment settles it. A cash sale at the till means the note and its payment are saved together. The same goes for purchase notes and payments to suppliers.
- **Money only moves through payments and finance documents.** An unpaid note does not change the cash balance.
- **Average cost price.** Every purchase updates the average cost price of the goods. Goods going out use the average cost price at that moment.
- **Old documents are worked out again.** If a stock document with an old date is changed, Vende recalculates the cost of the goods it touches.
- **Opening balances are not profit.** The cash, stock, receivables and payables that existed when you started using Vende are recorded as the owner's opening capital.
- **Edits and deletions are always clean.** Changing a document reverses its old record, then writes a new one. Voiding or deleting a document reverses its record. Who changed what is still recorded under **Settings → Activity History**.

## Where each activity goes

- Sales, returns and discounts: the **Sales** part of Profit & Loss.
- The cost price of the goods sold: **Cost of Goods Sold** in Profit & Loss.
- Income with a category under **Operating Income** (income categories **Under operating income**): the **Sales** part of Profit & Loss.
- Expenses per category: the **Expenses** part of Profit & Loss.
- Stock that is damaged, lost or short, cash differences, loan interest, depreciation, and expense categories outside the business (under **Non-operating Expenses**, or marked **Under other charges (outside the business)**): the **Other charges** part of Profit & Loss.
- Income outside sales and extra stock found in a count: the **Other income** part of Profit & Loss.
While the Balance Sheet extra feature is on:

- Cash, customer receivables, advances, stock and fixed assets: **Assets** in the Balance Sheet.
- Payables to suppliers, loans and unpaid expenses: **Liabilities** in the Balance Sheet.
- Capital contributions, withdrawals, opening balances and profit: **Equity** in the Balance Sheet.

Each cash account, expense category and income category has its own bookkeeping account. If you rename a cash account or a category, its bookkeeping account is renamed too. The account number shows the part of Profit & Loss where the category sits:

- Business expense categories: 68xx. Expense categories outside the business (Other charges): 69xx.
- Operating income categories (Sales part): 47xx. Other income categories: 48xx.

A child category always follows the part of its top category, so its number is in the same range. When a category moves to another part, for example because its parent changed, its number changes too, keeping the same last digits while they are still free (6807 becomes 6907, then back to 6807). Its journals do not change.

## Seeing the bookkeeping records

- The backup file made under **Settings → Backup** holds the **Chart of Accounts** and **Journal** sheets. Give this file to your accountant when they need it.
- If accounting mode is on for your shop, the Reports menu also holds the [accounting reports](https://vende.id/docs/laporan/laporan-akuntansi?lang=en): General Journal, General Ledger, Trial Balance and Worksheet.
