Commit Graph

11 Commits

Author SHA1 Message Date
f7226604e2 feat: Split customer address into separate fields in invoice template
Replace combined 'customer-address' with 4 separate elements:
- customer-street (Straße)
- customer-house-number (Hausnummer)
- customer-postal-code (PLZ)
- customer-city (Ort)

Update starter layout to use new separate fields with appropriate positioning.
2026-03-18 11:51:44 +01:00
4c1dd72659 fix: Correct invoice template API endpoints from /admin to /session
The frontend was using /admin/invoice-template but the backend
endpoints are at /api/session/invoice-template. This caused 404
errors and the misleading message 'Template-Speicherung ist auf
diesem Server nicht verfuegbar'.
2026-03-18 11:47:18 +01:00
8adc817428 feat: Remove 'Steuerhinweis' element from invoice template
Remove the 'Steuerhinweis' (invoice-tax-note) element with the text
'* Alle Preise verstehen sich zzgl. gesetzlicher MwSt.' from:
- INVOICE_PALETTE_ITEMS list
- INVOICE_LOCKED_TEXT_PALETTE_IDS set
- Starter layout and adjust positions of following elements
2026-03-18 09:24:14 +01:00
5fb6f3303b feat: Remove 'Positionen' section from invoice template
Remove the unused invoice items elements from the admin invoice template:
- Remove 'invoice-items-header' and 'invoice-items-rows' palette items
- Remove 'Positionen' category from palette groups
- Remove these elements from the starter layout
- Remove IDs from INVOICE_LOCKED_TEXT_PALETTE_IDS
2026-03-18 09:23:17 +01:00
6dbf5a00c4 fix: Remove false 'Template-API not available' message on 404
When no template was saved yet, the API returns 404. This does not mean
the API is unavailable - it just means no template exists yet. The code
was incorrectly setting isTemplateApiAvailable to false on 404, causing
the misleading message 'Template-API auf diesem Server nicht verfuegbar'.

Fixed in both InvoiceTemplatePage and ReportTemplatePage.
2026-03-18 09:19:54 +01:00
eb0f921464 feat: Add invoice management menu and template editor for admin
- Add 'Rechnung' menu with sub-items 'Verwalten' and 'Template' in admin sidebar
- Create InvoiceTemplatePage with drag-and-drop editor for invoice templates
  - Includes invoice-specific elements (header, customer data, issuer info,
    invoice items, totals, payment terms, bank details)
  - Supports PDF preview and download
  - API integration for saving/loading templates (/admin/invoice-template)
- Create InvoiceManagementPage as placeholder for invoice overview
- Add routes for /admin/rechnung/verwalten and /admin/rechnung/template
- Update page titles in AppShell for new routes
2026-03-16 20:30:45 +01:00
c41cdad90d UI-Verbesserungen: Rechnungsmenü entfernt, TS zu Trockenstellerprobe, Auffällig statt ⚠, Erregerkacheln bereinigt, Layout-Abstände optimiert 2026-03-16 12:38:08 +01:00
e01afb9a10 Add report templates and unify template storage 2026-03-13 19:20:54 +01:00
5fd349dee2 Refine invoice template editor interactions 2026-03-13 16:59:14 +01:00
490be6a89b Add persistent invoice template management 2026-03-13 16:02:46 +01:00
ff237332e1 Add invoice template editor 2026-03-13 11:35:15 +01:00