First commit - es tut schon mal ganz gut

This commit is contained in:
2026-02-27 12:35:29 +00:00
commit 53124c1c78
27 changed files with 8403 additions and 0 deletions

43
types/ausgaben.ts Normal file
View File

@@ -0,0 +1,43 @@
// TypeScript interfaces for Ausgaben application
export interface AusgabenEntry {
ID: number;
Datum: string;
WochTag: string;
Wo: string;
Was: string;
Wieviel: number;
Wie: string;
OK?: number;
}
export interface CreateAusgabenEntry {
Datum: string;
WochTag: string;
Wo: string;
Was: string;
Wieviel: string | number;
Wie: string;
OK?: number;
}
export interface MonthlyStats {
totalAusgaben: number;
ECR: number;
ECB: number;
barR: number;
barB: number;
Einnahmen: number;
Ueberweisungen: number;
}
export type Zahlungsart = 'EC-R' | 'EC-B' | 'bar-R' | 'bar-B' | 'Einnahme' | 'Ueber';
export const ZAHLUNGSARTEN: { value: Zahlungsart; label: string }[] = [
{ value: 'EC-R', label: 'EC-R' },
{ value: 'EC-B', label: 'EC-B' },
{ value: 'bar-R', label: 'bar-R' },
{ value: 'bar-B', label: 'bar-B' },
{ value: 'Einnahme', label: 'Einnahme' },
{ value: 'Ueber', label: 'Überweisung' },
];