feat(manager): expenses, the supplier book and tabs on v2 (platform-v2 step 6.13a)
- Finance -> Expenses: still owed, late, filters, new/edit (supplier picked or added there), pay in parts, details with payments, delete - CRM -> Contacts: the supplier book with what each one is owed - Finance -> Tabs: open (who owes most first) / settled, charges and payments, pay (cash/card/other), close, forgive - backend: expenses.manage / tabs.manage (the list also reports.view, a customer's tabs also crm.manage, put-on-tab needs tabs.manage); payment <= due (expense.over_due), total >= paid (expense.below_paid), categories/kinds/methods checked, null clears a field; live events expenses.changed / tabs.changed; GET /api/expenses ?from=&to= venue dates (the report uses it); tab_status=settled - fix: an expense with a due date failed to save (naive date refused by D-11) - @xenia/i18n/number subpath; tests: test_finance.py (6), finance.test.mjs (5), e2e manager.mjs finance flow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -196,6 +196,8 @@ CODES: dict[str, tuple[int, str]] = {
|
||||
"transfer.version": (400, "This export's version isn't supported."),
|
||||
"contact.not_found": (404, "Contact not found."),
|
||||
"expense.not_found": (404, "Expense not found."),
|
||||
"expense.over_due": (400, "That's more than what is still due ({due})."),
|
||||
"expense.below_paid": (400, "{paid} has been paid already: the total can't be less."),
|
||||
"flag.not_found": (404, "Mark not found."),
|
||||
"flag.in_use": (409, "This mark is on {count} table(s). Remove it there first."),
|
||||
"flag.invalid_ids": (400, "Some of these marks don't exist."),
|
||||
|
||||
Reference in New Issue
Block a user