feat(buchhaltung): budget types, erstattungen, recurring tab move, overview dividers, order completion guard

This commit is contained in:
Matthias Hochmeister
2026-03-30 14:07:04 +02:00
parent 13aa4be599
commit b21abce9e3
10 changed files with 615 additions and 140 deletions

View File

@@ -6,6 +6,7 @@ export type FreigabeStatus = 'ausstehend' | 'genehmigt' | 'abgelehnt';
export type WiederkehrendIntervall = 'monatlich' | 'quartalsweise' | 'halbjaehrlich' | 'jaehrlich';
export type PlanungStatus = 'entwurf' | 'aktiv' | 'abgeschlossen';
export type AusgabenTyp = 'gwg' | 'anlagen' | 'instandhaltung';
export type BudgetTyp = 'detailliert' | 'einfach';
export const AUSGABEN_TYP_LABELS: Record<AusgabenTyp, string> = {
gwg: 'GWG',
@@ -98,6 +99,8 @@ export interface Konto {
budget_gwg: number;
budget_anlagen: number;
budget_instandhaltung: number;
budget_typ: BudgetTyp;
budget_gesamt: number;
notizen: string | null;
aktiv: boolean;
erstellt_von: string | null;
@@ -235,6 +238,8 @@ export interface KontoFormData {
budget_gwg: number;
budget_anlagen: number;
budget_instandhaltung: number;
budget_typ?: BudgetTyp;
budget_gesamt?: number;
parent_id?: number | null;
kategorie_id?: number | null;
notizen?: string;
@@ -286,3 +291,18 @@ export interface KontoDetailResponse {
children: KontoTreeNode[];
transaktionen: Transaktion[];
}
export interface ErstattungFormData {
konto_id: number;
bankkonto_id: number | null;
betrag: number;
datum: string;
beschreibung?: string;
empfaenger_auftraggeber?: string;
quell_transaktion_ids: number[];
}
export interface ErstattungLinks {
erstattung_transaktion_id: number | null;
quell_transaktion_ids: number[];
}