mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-12-06 20:38:50 +00:00
paisa: promote from _dev; add config, demo, template, docs; remove maybe_dev
- Rename paisa_dev to paisa (production-ready) - config/: blank-slate paisa.yaml and main.ledger - demo/: Demolition Company Ltd. sample books (Dec 2025 to Feb 2026) with a tax-estimates sheet - template/: starter books for a new small BC corporation - docs/: demo guide, ledger cheatsheet, Paisa for accountants - Remove maybe_dev stack Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
# Using the Demo Data
|
||||
|
||||
The `demo/` folder is a complete ledger git repo for a fictional
|
||||
British Columbia business, **Demolition Company Ltd.** Use it to explore
|
||||
Paisa before entering your own books. All figures are made up.
|
||||
|
||||
## What's in it
|
||||
|
||||
| File | Purpose |
|
||||
| ----------------- | ---------------------------------------------------------- |
|
||||
| `paisa.yaml` | Paisa config: CAD, BC time zone, strict accounts, goals |
|
||||
| `main.ledger` | Entry point; includes the other files |
|
||||
| `accounts.ledger` | Chart of accounts and the CAD commodity |
|
||||
| `budget.ledger` | Monthly budget (periodic transaction) |
|
||||
| `2025.ledger` | Incorporation, share issue, equipment purchase (Dec 2025) |
|
||||
| `2026.ledger` | January and February 2026 transactions |
|
||||
| `sheets/` | Paisa sheet with 2025 and 2026 tax estimates |
|
||||
| `.gitignore` | Keeps `paisa.db` out of git if both paths share a folder |
|
||||
|
||||
## The company
|
||||
|
||||
- Incorporated in British Columbia on **December 1, 2025**
|
||||
- Fiscal year end: **December 31**
|
||||
- 100 common shares issued at $2,500 each ($250,000 share capital)
|
||||
|
||||
| Shareholder | Class | Shares | Paid (CAD) |
|
||||
| -------------------------- | ------------------- | -----: | ---------: |
|
||||
| CEO | A (voting) | 26 | 65,000.00 |
|
||||
| CAO | A (voting) | 25 | 62,500.00 |
|
||||
| CFO | A (voting) | 10 | 25,000.00 |
|
||||
| Secretary | A (voting) | 5 | 12,500.00 |
|
||||
| Investor01 to Investor04 | B (non-voting) | 4 | 10,000.00 |
|
||||
| Investor05 to Investor10 | B (non-voting) | 3 | 7,500.00 |
|
||||
| **Total** | | 100 | 250,000.00 |
|
||||
|
||||
Investor rows are per investor (four holders at 4 shares, six at 3).
|
||||
|
||||
The four officers hold 66 voting shares. The CEO's 26 is the largest
|
||||
single block, but no officer has a majority alone. The ten family and
|
||||
friends investors hold 34 non-voting Class B shares: they share in the
|
||||
equity but have no vote. Each holder has an account under
|
||||
`Equity:ShareCapital:ClassA` or `ClassB`, and each posting carries a
|
||||
`Shares:` tag with the share count.
|
||||
|
||||
December 2025 covers incorporation and legal fees, the share issue, a
|
||||
$120,000 equipment loan, machinery and vehicle purchases (BC PST added to
|
||||
the asset cost, GST claimed as input tax credits), a savings transfer, a
|
||||
petty cash float, and the first loan payment.
|
||||
|
||||
The crew also did three small jobs that month:
|
||||
|
||||
| Invoice | Job | Before tax | With GST + PST | Paid |
|
||||
| ------- | ----------------------------- | ---------: | -------------: | ------------- |
|
||||
| 1001 | Backyard shed removal | 2,500.00 | 2,800.00 | Dec 16, 2025 |
|
||||
| 1002 | Kitchen tear-out, Oak Ave | 4,800.00 | 5,376.00 | Jan 8, 2026 |
|
||||
| 1003 | Detached garage demolition | 7,500.00 | 8,400.00 | Dec 30, 2025 |
|
||||
|
||||
Plus scrap steel sales, landfill fees, fuel on the credit card, December
|
||||
wages, and the WorkSafeBC premium. Invoice 1002 is still owed at year end,
|
||||
and $840 of fuel is still on the credit card; both are settled in 2026.
|
||||
|
||||
## Year end, December 31, 2025
|
||||
|
||||
The first fiscal year is one month long. `2025.ledger` ends with two
|
||||
entries dated December 31:
|
||||
|
||||
1. **Tax accrual:** corporate income tax at the 11% small business rate
|
||||
(9% federal + 2% BC) on 3,890.00 of profit = 427.90, owed to CRA.
|
||||
2. **Closing entry**, tagged `:closing:`: moves every 2025 income and
|
||||
expense balance into `Equity:RetainedEarnings`.
|
||||
|
||||
| 2025 | CAD |
|
||||
| -------------------------------------- | ---------: |
|
||||
| Demolition income | 14,800.00 |
|
||||
| Scrap income | 650.00 |
|
||||
| **Total income** | **15,450.00** |
|
||||
| Wages | 6,000.00 |
|
||||
| Disposal | 2,000.00 |
|
||||
| Professional fees | 1,500.00 |
|
||||
| Fuel | 800.00 |
|
||||
| Interest | 670.00 |
|
||||
| Incorporation | 350.00 |
|
||||
| WorkSafeBC | 240.00 |
|
||||
| **Total expenses** | **11,560.00** |
|
||||
| Net income before tax | 3,890.00 |
|
||||
| Corporate income tax (11%) | 427.90 |
|
||||
| **Net income to retained earnings** | **3,462.10** |
|
||||
|
||||
The T2 return and the tax balance are due June 30, 2026 (six months after
|
||||
year end). The small business rates are a simplification for the demo;
|
||||
confirm current rates with an accountant.
|
||||
|
||||
Accountants new to Paisa: read
|
||||
[Paisa for Accountants](paisa-for-accountants.md#closing-entries) before
|
||||
relying on Paisa's December 2025 reports. The closing entry makes them show
|
||||
zero net income for that month.
|
||||
|
||||
## Tax estimates sheet
|
||||
|
||||
`sheets/tax-estimates.paisa` (in Paisa: **More → Sheets**) uses the
|
||||
ledger to work out profit, the 11% small business tax, net GST, and PST
|
||||
for fiscal 2025 and 2026 to date, then totals the cash to set aside. It
|
||||
skips the closing entry so the 2025 figures aren't zero. The expected
|
||||
result is in a comment on each line, so you can check it against the
|
||||
ledger.
|
||||
|
||||
## 2026 activity
|
||||
|
||||
The 2026 books cover demolition invoices with GST 5% and
|
||||
BC PST 7%, scrap metal sales (GST only), expenses with GST input tax
|
||||
credits, payroll and CRA remittances, WorkSafeBC premiums, an equipment
|
||||
loan, a credit card, and a savings transfer toward an excavator fund.
|
||||
|
||||
## Where the files go
|
||||
|
||||
| Data | Host path | In git? |
|
||||
| ----------------------------- | ---------------------------- | ------- |
|
||||
| `paisa.yaml`, `*.ledger` | `${VOL_PROJECTS:-/data}/paisa` | Yes |
|
||||
| `paisa.db` (SQLite) | `${VOL_PATH:-/data}/paisa` | No, backed up by restic |
|
||||
|
||||
Both variables default to `/data`, so out of the box both are `/data/paisa`.
|
||||
|
||||
## Load the demo
|
||||
|
||||
1. From the root of this repo, copy the demo into its own folder, keeping
|
||||
your real books separate:
|
||||
```bash
|
||||
mkdir -p /data/demo
|
||||
cp -r paisa/demo /data/demo/paisa
|
||||
```
|
||||
2. In Dockhand, edit the stack's environment variables:
|
||||
```env
|
||||
VOL_PROJECTS=/data/demo
|
||||
VOL_PATH=/data/demo-db
|
||||
```
|
||||
The compose file appends `/paisa`, so the ledger comes from
|
||||
`/data/demo/paisa` and the database is written to `/data/demo-db/paisa`.
|
||||
3. Redeploy the stack and open http://localhost:7500 (or the host's
|
||||
address or proxy hostname if you're not on the Docker host).
|
||||
4. Optional: make it a git repo to try the workflow:
|
||||
```bash
|
||||
cd /data/demo/paisa && git init && git add . && git commit -m "Demo books"
|
||||
```
|
||||
|
||||
## Switch back to your own books
|
||||
|
||||
Set `VOL_PROJECTS` and `VOL_PATH` back to your values (default `/data`)
|
||||
and redeploy. The demo database in `/data/demo-db` can be deleted at any
|
||||
time; Paisa rebuilds it from the ledger files.
|
||||
|
||||
## Start your own books
|
||||
|
||||
- **New business:** copy `template/` instead of `demo/`. It has a
|
||||
chart of accounts for a small BC corporation, `strict: "yes"`, a
|
||||
sample budget, and a year file with commented examples. Fill in the
|
||||
`TODO`s in `paisa.yaml`, `main.ledger`, and `accounts.ledger`.
|
||||
- **Blank slate:** copy `config/`. It holds the same defaults with an
|
||||
empty journal, `strict: "no"`, and no accounts.
|
||||
Reference in New Issue
Block a user