feat(backend): expense lines (quantity, price before VAT, VAT %) and documents (PDF / photo)

An expense can list what it bought; the lines make its total (net, VAT half up per line), are
replaced on edit ([] removes them) and the total still can't drop below what was paid. Files kept
with an expense: POST/GET/DELETE /api/expenses/{id}/documents[/{doc}], PDF / JPG / PNG / WebP /
HEIC by their bytes, at most 15 MB, under MEDIA_DIR/expenses/<id>/ (removed with the expense).
Migration 0039.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 14:57:58 +02:00
co-authored by Claude Opus 5.5
parent 5915177c82
commit 9297cbcd3b
9 changed files with 361 additions and 5 deletions
+4 -1
View File
@@ -240,7 +240,10 @@
"expense": {
"not_found": "Expense not found.",
"over_due": "That's more than what is still due ({{due}}).",
"below_paid": "{{paid}} has been paid already: the total can't be less."
"below_paid": "{{paid}} has been paid already: the total can't be less.",
"document_not_found": "Document not found.",
"document_type": "Upload a PDF or a photo (JPG, PNG, WebP or HEIC).",
"document_too_big": "The file is too big (at most {{max_mb}} MB)."
},
"flag": {
"not_found": "Mark not found.",