L14 Abrechnungsübersicht: Datenmodell, Migration, Rechte und Modul

Neue Tenant-Tabellen work_order_milestones und billing_records (RLS, TENANT_MODELS, PII-Felder), Partial-Unique-Indizes je Quelle, billing_record_id an time_entries/material_usages. Rechte billing:read/billing:write (Backoffice, Mandantenadmin), Modul billing, Events milestone.*.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 10:35:20 +02:00
co-authored by Claude Opus 5
parent 9b087168d1
commit 6358d5762c
11 changed files with 220 additions and 3 deletions
+2
View File
@@ -71,6 +71,8 @@ const ENTITY_LABEL: Record<string, string> = {
import_job: "Auftragsimport",
material_usage: "Material",
time_entry: "Arbeitszeit",
billing_record: "Abrechnungseintrag",
work_order_milestone: "Meilenstein",
work_session: "Einsatzzeit",
photo: "Foto",
voice_note: "Sprachnotiz",