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": "Το έξοδο δεν βρέθηκε.",
"over_due": "Είναι περισσότερα από όσα οφείλονται ακόμα ({{due}}).",
"below_paid": "Έχουν ήδη πληρωθεί {{paid}}: το σύνολο δεν μπορεί να είναι λιγότερο."
"below_paid": "Έχουν ήδη πληρωθεί {{paid}}: το σύνολο δεν μπορεί να είναι λιγότερο.",
"document_not_found": "Το έγγραφο δεν βρέθηκε.",
"document_type": "Ανεβάστε PDF ή φωτογραφία (JPG, PNG, WebP ή HEIC).",
"document_too_big": "Το αρχείο είναι πολύ μεγάλο (έως {{max_mb}} MB)."
},
"flag": {
"not_found": "Η σήμανση δεν βρέθηκε.",