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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user