Accounting Model
Status: Draft. Roadmap step: 1.01 Accounting Foundations
Reviewer: TBD (someone with accounting knowledge) · Reviewed on: TBD
This folder books every common payment flow as a double-entry journal entry before any code exists. If an entry here is wrong, the code built on it will be wrong too.
| File | Contents |
|---|---|
| chart-of-accounts.md | Account codes, types and normal sides |
| entries/ | Worked journal entries E01–E35, grouped by flow |
| clearing-and-suspense.md | How money in flight, money with no known owner and differences found by reconciliation are booked, and the ageing report (steps 2.02, 2.15) |
| refunds-and-disputes.md | The refund rule, the fee on a refund, and the dispute policy (step 2.04; review pending) |
| trial-balance.md | Trial balance after all worked entries, with checks and running balances |
| review.md | Accounting review: checklist, questions, findings and sign-off |
Conventions
Section titled “Conventions”-
Currency: ETB. Amounts are shown in birr, with two decimals where needed (for example, 39.20). The engine stores them as
i64santim (minor units): 39.20 ETB is 3,920 santim. -
Accounting equation: Assets = Liabilities + Equity + (Revenue − Expenses)
-
Normal balances:
Type Normal side Increases with Decreases with Asset Debit Dr Cr Liability Credit Cr Dr Equity Credit Cr Dr Revenue Credit Cr Dr Expense Debit Dr Cr -
Every entry balances: the debits equal the credits, per currency.
-
History is immutable: a correction is a new entry and never an edit.
-
Entry format: every worked entry follows the entry template.
Exit checklist (step 1.01)
Section titled “Exit checklist (step 1.01)”- Every supported money flow has a worked entry
- The trial balance balances and every account sits on its normal side
- Chart of accounts v0 is filled in
- An accounting reviewer has signed off (name and date above; details in review.md)
- Exit gate: explain, without notes, why a customer deposit credits a liability and debits an asset (evidence: 1.01-accounting-foundations.md)