feat(buchhaltung): add categories, recurring tx scheduling, sub-pot budget validation, and UX polish

This commit is contained in:
Matthias Hochmeister
2026-03-30 12:56:33 +02:00
parent 86cb175aeb
commit 13aa4be599
9 changed files with 674 additions and 149 deletions

View File

@@ -6,6 +6,12 @@ import { uploadBuchhaltung } from '../middleware/upload';
const router = Router();
// ── Kategorien ────────────────────────────────────────────────────────────────
router.get('/kategorien', authenticate, requirePermission('buchhaltung:view'), buchhaltungController.listKategorien.bind(buchhaltungController));
router.post('/kategorien', authenticate, requirePermission('buchhaltung:manage_accounts'), buchhaltungController.createKategorie.bind(buchhaltungController));
router.patch('/kategorien/:id', authenticate, requirePermission('buchhaltung:manage_accounts'), buchhaltungController.updateKategorie.bind(buchhaltungController));
router.delete('/kategorien/:id', authenticate, requirePermission('buchhaltung:manage_accounts'), buchhaltungController.deleteKategorie.bind(buchhaltungController));
// ── Stats ─────────────────────────────────────────────────────────────────────
router.get('/stats', authenticate, requirePermission('buchhaltung:view'), buchhaltungController.getStats.bind(buchhaltungController));
router.get('/stats/pending', authenticate, requirePermission('buchhaltung:view'), buchhaltungController.getPendingCount.bind(buchhaltungController));