OsaBooks: A Guide for Accountants and Tax Practitioners

What this software does with client financial data, how its double-entry journal engine works, what it will and will not do, and how its figures can be verified for New Zealand Inland Revenue (IRD / Te Tari Taake) compliance.

Read this before relying on anything it produces.


1. What It Is — And the Rules of Engagement

OsaBooks takes raw bank exports and live bank feeds, reconciles invoices and fixed assets, and produces a fully balanced double-entry transaction ledger, statutory GST returns, and annual financial summaries. It runs locally on your machine or inside a browser — financial data is processed in-memory and on your local disk, never uploaded to third-party cloud servers.

Can It Be Used to Prepare Accounts?

It is your judgement alone, we suggest the safeguards below. At this point it is still a WIP. OsaBooks is built to be checked rather than trusted: every reported figure decomposes into the bank lines, invoices and human decisions behind it, and the trial balance proof in section 2 either balances to zero or names the journal that does not. Section 9 sets out how to validate it against a signed set of accounts before you rely on it.

It must be used with caution and professional diligence.

  1. No Developer Guarantees or Warranties: OsaBooks is free software distributed under the GNU Affero General Public Licence, version 3 or later, with the additional terms in NOTICE. It is provided strictly "as is", without warranty of any kind, express or implied. Neither the developers who wrote it nor anyone distributing it assume any liability or legal responsibility if a figure, tax classification, or return is incorrect. The compiling accountant, tax agent, or taxpayer remains entirely responsible for every figure filed with Inland Revenue.
  2. Not a Blind "Black Box": The software is deliberately designed around complete auditability and traceability. It does not make opaque adjustments or hide unreviewed guesses. Every ledger figure decomposes into visible bank lines, source invoices, and explicit human decisions.
  3. Accountant in the Loop: OsaBooks automates the mechanical heavy lifting of bank transaction coding, GST classification, invoice settlement matching, and asset depreciation calculations. What it does not replace are the professional judgements of a qualified accountant: year-end closing journals, opening equity reconciliations, tax provisions, shareholder loan benchmark interest adjustments, and compilation disclosures under Service Engagement Standard 2 (SES-2).

2. How the Double-Entry Journal Works

At the very heart of OsaBooks is a deterministic, balanced double-entry journal posting engine. Understanding how this engine functions is essential for any accountant reviewing its output.

The Journal Entry Model

Unlike simple single-entry cashbooks that merely categorise bank inflows and outflows, every approved transaction in OsaBooks generates balanced double-entry journal lines:

$$\sum \text{Debits} = \sum \text{Credits}$$

Each journal line carries an Account Code, Account Name, Monetary Amount (tracked in integer cents to eliminate floating-point rounding discrepancies), and explicit GST Classification metadata.

Example A: Standard Expense with GST

When a $115.00 payment for advertising clears the bank account:

Dr  400 Advertising Expenses       $100.00   [15% GST on Expenses — Input Tax]
Dr  820 GST Control Account         $15.00   [15% GST on Expenses — Claimable in Box 11 & 12]
Cr  Bank Account (BNZ Current)     $115.00   [Out of Scope — Gross Bank Settlement]

Example B: Invoiced Sale vs Bank Settlement (Avoiding Double-Counted Revenue)

In an accrual-aware accounting workflow, customer sales are invoiced before payment:

  1. When the Sales Invoice is Issued: ``text Dr 610 Accounts Receivable $1,150.00 [Debtor Asset Created] Cr 200 Sales Revenue $1,000.00 [Output Tax Supply] Cr 820 GST Control Account $150.00 [Output Tax — Box 5 & 8] ``
  2. When the Bank Receipt Clears: When the customer pays $1,150.00 into the bank account, OsaBooks matches the payment to the outstanding invoice. The receipt does not credit Sales again (which would inflate revenue by 100%): ``text Dr Bank Account (BNZ Current) $1,150.00 [Cash Asset Inflow] Cr 610 Accounts Receivable $1,150.00 [Debtor Asset Settled] ``

Example C: Inter-Bank Account Transfers

When funds move between the trading current account and the business credit card, single-entry systems often double-count income and expenditure or leave unreconciled balances in clearing accounts.

OsaBooks pairs corresponding outflow and inflow legs across accounts owned by the same entity:

Dr  BNZ Visa Card                  $1,260.65  [Liability Reduction / Card Inflow]
Cr  BNZ 01 Current Account         $1,260.65  [Cash Outflow]

Both legs are posted as one single journal, with no intermediate clearing account, and both sides marked strictly Out of Scope for GST.

Example D: Split Transactions (e.g. Stripe Payouts & Customs Border GST)

Real commercial transactions rarely fit single ledger categories. OsaBooks enforces that all split parts must sum to the bank statement line to the exact cent:

Derived vs Stored Postings

In OsaBooks, journal lines are derived, not frozen in opaque database tables.

When you modify a rule, correct an account mapping, or assign an invoice settlement, the journals for those transactions are recomputed from the underlying source data and the updated human decision. This ensures that the ledger never suffers from "drift" or orphan records where a rule was updated but historical journal lines were left stranded.

The Trial Balance Proof

OsaBooks can run a full mathematical proof over every journal in the book. However many journals and lines a set of books holds, the aggregate is the same:

$$\text{Total Debits} - \text{Total Credits} = \$0.00$$

If any journal fails to balance to zero, OsaBooks flags the offending journal ID and blocks generation of financial reports until the discrepancy is resolved.


3. The Three Accounting Bases

One of the most common pitfalls in bookkeeping software is conflating cash movements with accrual financial statements. OsaBooks clearly separates three accounting bases:

| Feature | Cash Basis | Accrual (Own Postings) | Accrual (Imported General Ledger) | | :--- | :--- | :--- | :--- | | Primary Source | Bank statements | Bank + Invoices + Assets | External General Ledger export (e.g. Xero) | | Revenue Recognition | When money hits the bank | When an approved sales invoice is issued (drafts, voided and deleted invoices are not posted) | When entered in GL | | Expenses Recognized | When money leaves the bank | When bill is issued / paid | When entered in GL | | Depreciation | Never | From Fixed Asset Register | From GL journals | | GST Returns | Used for Payments Basis (GST101A) | Reconciles to Debtors/Creditors | Audit comparison | | Financial Statements | Cash flow only | Profit and loss, balance sheet and IR10 from these postings | The same three reports read from the other system's journals, over the same opening balances, for comparison |

Why Cash and Accrual Differ (And Why That Is Correct)

A cash P&L will almost never equal an accrual P&L. Taking round figures for illustration:

This difference is not an error — it is the net movement in trade debtors across the balance date. Sales invoiced in March and paid in April belong to the year they were invoiced in, and to next year's bank statement. Expect the two figures to differ, and expect the difference to equal the movement in Accounts Receivable; if it does not, something is miscoded. OsaBooks’s dual-engine allows you to prepare GST returns on the cash/payments basis mandated by Inland Revenue while simultaneously tracking trade debtors and accrued revenue.


4. Chart of Accounts and New Zealand Tax Rules

OsaBooks reads the chart of accounts from the system the books come from, and places each account by its type rather than its number. The standard Xero New Zealand chart it is most often given looks like this:

GST Classification Engine (Te Tari Taake Rules)

The GST engine operates according to the Goods and Services Tax Act 1985:

  1. Standard Rated (15%): Tax fraction of $3/23$ applied to tax-inclusive amounts. Claimed in Box 11 & 12 (Purchases) or returned in Box 5 & 8 (Sales).
  2. Zero-Rated (0%): Exports, financial services where applicable. Reported in Box 5 and deducted in Box 6.
  3. Exempt / Out of Scope: Bank fees, interest, drawings, director loans, inter-account transfers, and Inland Revenue tax settlements. Does not appear on the GST101A form. A transfer recorded between the entity's own accounts is out of scope before any rule is consulted, whatever its bank line says.
  4. Customs / Border GST Imports: 100% of the line is tax (no $3/23$ fraction). Claimed in Box 13 as a credit adjustment.
  5. 50% Non-Deductible Entertainment: Under Subpart DD of the Income Tax Act 2007, business entertainment (meals, corporate events) is only 50% deductible for income tax, and the associated GST input tax on the non-deductible half must be adjusted. OsaBooks supports assigning a deductiblePercent: 50 tag to entertainment expenses to maintain statutory compliance.
  6. Refunds: A coded line sits on the side of the return its account is on. A supplier's refund reduces Box 11; a refund to a customer reduces Box 5. The GST is the same either way, but the boxes then agree with a return prepared in the accounting system.

5. Bank Feeds and Verification of Completeness

A major source of accounting error is missing transactions or duplicate imports. OsaBooks addresses this at two levels:

  1. Akahu Open Banking Integration: Direct, read-only OAuth connection to New Zealand registered banks (ANZ, ASB, BNZ, Westpac, Kiwibank). Pulls transactions directly with end-to-end data integrity.
  2. Daily Balance Verification (Bank import → Import bank balances): Compares the running balance of imported transactions against the bank’s official daily closing balances. If a transaction is missed or duplicated, OsaBooks flags the exact calendar day and exact dollar variance immediately.

6. The Decisioning Engine: Rules Suggest, Humans Decide

Automated accounting AI often fails when it guesses silently. OsaBooks adheres to a strict design principle:


7. Meeting Inland Revenue (IRD) Requirements

From the perspective of an accountant, tax agent, or IRD auditor, software must satisfy specific statutory criteria under the Tax Administration Act 1994 (TAA):

Record-Keeping (TAA Section 22)

Under section 22, taxpayers must keep sufficient records in English or Te Reo Māori to enable the Commissioner to ascertain readily their taxable income, allowable deductions, and GST liabilities, and retain them for at least 7 years.

GST Returns (GST101A)

Returns are built on the payments basis for one-, two- or six-monthly periods, from each bank line's coding:

Filed returns can be loaded and compared period by period, as Box 8 less Box 12, with the lines behind each difference and a place to record an explanation against it.

IR10 Financial Statements Summary

Every company income tax return (IR4) is filed with an IR10 or a full set of financial statements. OsaBooks produces the IR10 set out as the current form is filed — boxes 1 to 60, in whole dollars, totals in bold — from the same postings as the financial statements:

Each account is placed by its type and its name, not its number: "Accounting fees" is a professional fee and "Rent" is rent whatever code a chart gives them. Xero's standard numbering (437 interest, 473 repairs and so on) is used only for an account with no name, so a chart numbered any other way still lands in the right boxes. Check the account names before relying on the form: an expense called "General" goes to other expenses (24), even if it is really rent.

Rounding follows a signed return. Each box is its accounts summed and rounded to the dollar; total income (11) and total expenses (25) are rounded from their exact figures, and other income (10) and other expenses (24) take the rounding that remains, so every total adds up. Laid beside an IR10 filed by a practitioner, all 60 boxes agreed, from both the ledger's own postings and the imported general ledger.

Shareholder Current Accounts (Section HB 1 & FBT/Deemed Dividend Rules)

In owner-operated New Zealand companies, transactions between the company and its shareholders are heavily scrutinised by the IRD:

Rental Properties and the IR3

A ledger can hold a household's affairs: rental properties, personal accounts and a business side by side. Each rental is an entity with a kind (residential or commercial), a GST registration and owners with shares, and its accounts are assigned to it.

What it does not do: bright-line sales, mixed-use assets, the main home exemption, depreciation of rental chattels outside the asset register, and income years whose tax rates it does not hold — for those it says so rather than working tax out on a guess. Property manager statements. An agent's deductions never reach a bank account, and their payouts fall in later months than the rent. The agent is treated as holding the owner's money: payments from the agent are coded to a property manager account (a current asset of the property, one per agent), and each statement is entered as rent and other income collected, fees and invoices paid out, paid to the owner, and the balance held at the start and end. A statement must reconcile — held at start plus collected, less paid out, less paid to the owner, equals held at end — before it posts. It posts as a journal dated the end of its period: income credited, expenses debited, the net to the property manager account. Each statement is then checked against the ledger: the account's balance at the period end should equal the balance the agent reports, and a difference equal to receipts banked within two weeks after the period is identified as timing. For a rental not registered for GST, fees are entered including GST; for a registered one, the GST on fees still needs a manual journal. Money the agent held when the ledger begins is best brought in with a journal at the prior balance date (the rent it came from belongs to that year), rather than an opening balance that would restart every account.


8. Producing Annual Financial Statements (SES-2 Standard)

To prepare financial statements that can be signed by directors and submitted to banks and Inland Revenue, accounts must comply with the Special Purpose Financial Reporting Framework for For-Profit Entities (SPFR for FPEs), compiled under Service Engagement Standard No. 2 (SES-2).

A full statutory financial report consists of eight essential parts:

  1. Compilation Report: The practitioner’s report detailing scope, responsibilities, disclaimers, and lack of audit assurance under SES-2.
  2. Approval of Financial Report: Formal resolution signed and dated by the Board of Directors under the Companies Act 1993.
  3. Statement of Profit or Loss: Categorised into Trading Income, Cost of Sales, Gross Profit, Other Income, Operating Expenses, Non-Assessable Income, Non-Deductible Expenses, and Net Profit Before and After Tax.
  4. Balance Sheet (Statement of Financial Position): Current Assets (Bank, Debtors, GST), Non-Current Assets (PPE), Current Liabilities (Creditors, GST, Shareholder Loans), Net Assets, and Equity.
  5. Statement of Changes in Equity: Opening balance, Net Profit for the year, Dividends/Drawings, Closing Equity.
  6. Depreciation Schedule: Line-by-line register of all fixed assets showing asset description, purchase date, cost, opening book value, additions, disposals (sale proceeds and gain/loss), depreciation rate, method (SL or DV), current year depreciation, and closing book value.
  7. Shareholder Current Accounts Schedule: Detailed reconciliation for each shareholder: Opening balance, Funds Introduced, Share of Profit / Salaries, Drawings, and Closing balance.
  8. Notes to the Financial Statements: Accounting policies adopted (measurement base, revenue recognition, accounts receivable valuation, depreciation rates, GST presentation).

What OsaBooks Provides vs What the Accountant Supplies

| Statement / Schedule | OsaBooks Native Capability | What the Accountant / Practitioner Supplies | | :--- | :--- | :--- | | Profit or Loss | Complete from bank + invoices + assets, under trading income, cost of sales, gross profit, other income and operating expenses | Year-end non-cash adjustments (accruals, provisions) | | Depreciation Schedule | Computed from Fixed Asset CSV | Review of depreciation rates & tax vs book methods | | Asset Disposals | Depreciation recovered, capital gain or loss on sale, worked out from the proceeds — read from the previous system's disposal journal, or entered | Review of the proceeds and their tax treatment | | Balance Sheet | Bank, debtors, creditors, GST, fixed assets, shareholder current accounts and retained earnings | Opening balances, tax provisions | | Equity Statement | Current year net profit | Opening equity from prior year's signed accounts | | Shareholder Accounts | Drawings & Funds Introduced movements | Opening balances, salary allocations, benchmark interest | | SES-2 Compilation Report | Standard markdown/HTML export template | Professional sign-off, firm letterhead, client disclosures |


9. Validating It Against a Signed Set of Accounts

Do not take this guide's word for any of the above. The way to satisfy yourself is to run a year you already have signed accounts for, and see whether the figures come back. This is the recommended first use of the software on any client, and it takes an afternoon.

What to load

What to compare, and in what order

Work down this list. Each step depends on the one above it, so a difference found late is usually caused by something skipped early.

  1. Bank completeness first. Every account's closing balance must agree with the bank's own figure. Until this holds, nothing below it means anything: a report built from an incomplete set of transactions can still balance perfectly and still be wrong.
  2. Trial balance proof. Debits less credits across every journal must be zero.
  3. Balance sheet. Compare against the signed statement of financial position, line by line. Differences here usually mean opening balances, not coding.
  4. Profit or loss, line by line. Expect most lines to agree exactly and a handful not to. The exceptions are the interesting part.
  5. Depreciation, against the signed depreciation schedule.
  6. Each GST period, against the return as filed, recording an explanation for every difference.
  7. The IR10, box by box, against the one filed with the IR4.

Reading the differences

A line that does not agree is not necessarily a fault in the software, and this is where professional judgement is actually required. In practice differences fall into a few recognisable kinds:

The standard to hold it to

A validation has passed when every difference is explained, not when every difference is zero. An unexplained agreement is worth less than an explained difference: the first may be luck, the second is understanding. Record the explanations — they are the working papers for the year, and they are what makes the following year quick.


10. Summary Checklist for Practitioners

When using OsaBooks to review client books or compile financial statements:

  1. Verify Bank Feed Completeness: Run Bank import → Import bank balances to ensure zero missing or duplicated transactions.
  2. Review Uncoded & Guess Rates: Ensure that 100% of transactions are confirmed decisions, with zero unreviewed guesses.
  3. Check Inter-Account Transfers: Confirm that all inter-account sweep and credit card payments are paired as transfer journals, and that no line is both a transfer and coded to an account.
  4. Reconcile Invoices & Debtors: Verify that customer receipts settle invoices rather than posting directly to revenue.
  5. Reconcile Fixed Assets & Disposals: Check that capital gains, losses on disposal, and depreciation recovery have been recognised.
  6. Input Opening Balances: Carry forward opening retained earnings, opening shareholder current accounts, and opening fixed asset values from last year's signed financial report.
  7. Review Tax Adjustments: Apply the 50% non-deductible entertainment split and remove non-assessable capital gains before finalizing taxable income.
  8. Check for Draft Invoices: Confirm that only approved invoices are in the figures.
  9. Explain Every GST Difference: Load the filed returns and record an explanation for each period until nothing is left unexplained.

With these safeguards in place, OsaBooks provides an exceptionally rigorous, auditable, and transparent accounting platform for businesses and their professional advisors.

OsaBooks — free accounting for New Zealand. Free software under the GNU AGPL v3 with the additional terms in NOTICE, provided as is and without warranty of any kind. Built from accountant-guide.md.