diff --git a/docs/TODO.md b/docs/TODO.md index 2169fe2..826491e 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -23,6 +23,15 @@ finished step, with the commit message it used where the spec left a choice. - 5 `rates.py` - 6 `auth.py` — the CSRF secret is derived from the session token, because `sessions` has no CSRF column; session lifetime 30 days (not specified). - 7 `validation.py` +- 8 `ledger.py` — a sats fee raises the consumed sats for a sale and a spend only (spec §3.2); for a transfer it lowers what arrives, and elsewhere it is only recorded. `rebuild()` clears every consumption, because `lot_consumptions` is derived and `lot_picks` is the durable input; a stale pick is skipped rather than fatal. +- 9 `tax.py` — holdings come from the ledger at 31.12, so a sale in a later year cannot change an earlier year's formue. +- 10 `export.py` — `report_csv()` carries the UTF-8 BOM and is followed by `transactions_csv()`. +- 11 `maintenance.py` — `auth.reset_password()` added, because the action cannot know the old password. +- 12 `app.py` — server core, static pages, the session cookie, the CSRF check and `/api/auth/*`. +- 13 `app.py` — `/api/markets`, `/api/transactions`, `/api/lots`, `/api/prices`, `/api/settings`; every write that can move the ledger ends with `ledger.rebuild()`. +- 14 `app.py` — `/api/report` and `/api/report/export.csv`. +- 15 `tests/test_ledger.py` +- 16 `tests/test_tax.py` ## Not in this plan