Finance & Accounting
Expenses, vendor bills, petty cash, staff payouts, bank reconciliation, GST, P&L, and accounting exports (Zoho Books, Tally).
5 min read
Overview
The finance layer sits beside checkout. Pages under /dashboard/finance cover expenses, vendor bills, petty cash, staff payouts and bank-statement reconciliation. Pages under /dashboard/accounting cover GST, the P&L statement, the chart of accounts, exports, and an AI accountant. There is no accounts-receivable ledger and no AP aging report in the code.

All amounts are stored in minor units (paise).
Chart of Accounts
seedDefaultAccounts inserts 18 default accounts (codes 1000 to 6900) of types asset, liability, equity, revenue, cogs and expense, for example 4000 Service Revenue, 4100 Retail Revenue, 5000 Cost of Products Sold, 6100 Rent and Utilities. Brands can add accounts. The chart is reference data: the P&L and the exports below group by expense category and line type, not by posting transactions to accounts (no journal posting code was found).
Expenses
/dashboard/finance/expenses. An expense has a free-text category, description, amount, optional vat_minor, payment_method (cash, bank, upi, card), date, notes and the store it was raised in. No receipt upload exists.
Two separate state fields:
approval_status:pending,approved,rejected(with a reason)status:pending,paid,reconciled. An expense can be markedpaidonly after it is approved
Flow:
- A user with
expenses.create(default owner and managers) submits the expense; an alert is sent - A user with
expenses.approve(defaultorg_owneronly) approves or rejects it - Approving a cash expense posts a cash-out movement to the store's open cash-drawer shift. If no drawer shift is open, the approval fails with a message telling the user to open the drawer first. UPI, card and bank expenses never touch the drawer
Petty Cash
/dashboard/finance/petty-cash. A separate running ledger (petty_cash_ledger) per store, with a stored balance_after. Entry types: float_top_up, receipt and adjustment (all add money) and expense (subtracts; refused with "Insufficient petty cash balance" when the balance would go below zero). A store must be selected to record an entry. Petty cash entries are not linked to the Expenses list automatically, and are separate from the cash-drawer shifts in Cash.
Vendor Bills (Accounts Payable)
/dashboard/finance/vendor-bills. Bills are entered manually (supplier or vendor name, invoice number, issue and due dates, amount). Receiving a purchase order does not create a bill.
status |
Meaning |
|---|---|
pending |
Default for a new bill |
partial |
Some payment recorded |
paid |
Payments cover the amount |
draft, overdue |
Allowed values, but no code sets them; overdue is never assigned automatically |
Recording a payment (vendor_bill_payments: amount, method, reference) updates paid_minor and the status. The AP summary shows the outstanding total, the overdue total and the count of open bills.
Bank Reconciliation
/dashboard/finance/reconcile. Statement lines (bank_statement_lines, source bank, upi or card) are imported with date, description, amount and reference. Each line is unmatched, matched (staff pick the record type and id) or ignored. The summary shows the matched percentage. There is no automatic match suggestion and no period close.
Staff Payouts
/dashboard/finance/payouts records money paid to staff in staff_payouts: type is payout, advance, deduction, bonus or allowance, with amount, period (YYYY-MM), payment method (default cash), date and notes. The per-staff summary adds up payout and advance rows only. Payslips and salary runs are a separate module under /dashboard/staff-ops/payroll (see Staff Operations).
GST
- Tax rates (
tax_rates) with a CGST, SGST and IGST split, an inclusive flag and a default rate are managed in the accounting area (managers only) computeGSTReturntotals paid invoices for a month: taxable value, CGST, SGST, IGST. Invoices without a stored split are split 50/50 into CGST and SGSTgstr1andgstr3bboth come from this same function, so each is a one-row monthly summary (no invoice-level B2B/B2C tables, no HSN summary). A saved return can be markedfiledin Kagami; this does not file with the GST portal- There is no input tax credit (ITC) calculation
P&L Statement
computePLStatement for a month (optionally one store): revenue (paid invoice totals minus tax), cost of products sold, expenses grouped by category, gross profit and operating profit. The cost-of-products figure is built from stock movements; see Inventory for how stock-movement costs are recorded.
Accounting Exports
/dashboard/accounting/exports generates a CSV for a month and logs it in accounting_exports. Types: pl_statement, gstr1, gstr3b, zoho_books, tally.
- Zoho Books export and Tally export are both derived from the P&L lines: one row per line, dated the first of the month. Zoho rows are debit or credit by line type. Tally rows carry voucher type
Receipt(revenue) orPayment(everything else) with the line label as the ledger - The Tally output is a plain CSV (
date, voucher_type, ledger, amount, narration), not Tally XML, and not a transaction-level voucher list
Zoho Books Sync
An optional per-brand connection (zoho_sync_settings; OAuth client id and secret are stored server-side; Indian data-centre endpoints). A manual "run sync" action pushes paid invoices. Expenses are not pushed at present.
Each paid invoice becomes one Zoho invoice with a single line "Salon Services" for the whole total.
Success and failure are logged per record (zoho_sync_logs), and records already synced are skipped. No scheduled sync is wired up, and sync_payments is a stored flag with no code behind it. Vendor bills are not pushed. The sync is one-way.
Known limitations
Edge-case behaviour of the finance actions is not exhaustively documented here; check the code before relying on it.
Key Data Entities
- expenses, petty_cash_ledger
- vendor_bills, vendor_bill_payments
- bank_statement_lines
- staff_payouts
- accounts (chart of accounts), tax_rates, GST returns (
draftorfiled) - accounting_exports
- zoho_sync_settings, zoho_sync_logs
Permissions
| Action | Permission | Default roles |
|---|---|---|
| Submit an expense | expenses.create |
owner, brand manager, location manager |
| Approve or reject an expense | expenses.approve |
org_owner only |
| Configure tax rates | role check (MANAGER_ROLES) |
owner, brand manager, location manager |
| Other finance pages | Page access via Settings, Roles and Permissions | per nav defaults |