Add invoice generator and mileage logbook

Invoices: business details and logo, saved customers, numbering, GST per
line, PDF download (fpdf2), and marking paid, which records the income in
the book (split into Incl and Excl GST rows when an invoice has both) or
uses an already-imported bank deposit. Statement import treats a split
payment as the one bank line it came from.

Mileage: vehicles and trips with odometer readings, business or private
use, IRD kilometre rates entered per income year, a per-vehicle tier 1/2
claim and a CSV logbook export. Report only: nothing is added to the
cashbook or IR10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-10-25 18:56:30 +13:00
1 parent 4b3e5f0932
commit 177dfbc0a4
15 files changed
+2208 -10

No files matched your search

+4
View File
@@ -14,6 +14,8 @@ from cashbook_app.db.session import get_engine, get_session_factory
from cashbook_app.routers.auth_routes import router as auth_router
from cashbook_app.routers.books import router as books_router
from cashbook_app.routers.frontend import router as frontend_router
from cashbook_app.routers.invoices import router as invoices_router
from cashbook_app.routers.mileage import router as mileage_router
from cashbook_app.routers.statements import router as statements_router
from cashbook_app.routers.users_admin import router as users_router
from cashbook_app.services import accounts, spreadsheets
@@ -119,6 +121,8 @@ def create_app() -> FastAPI:
app.include_router(users_router)
app.include_router(books_router)
app.include_router(statements_router)
app.include_router(invoices_router)
app.include_router(mileage_router)
return app