First commit - es tut schon mal ganz gut
This commit is contained in:
43
types/ausgaben.ts
Normal file
43
types/ausgaben.ts
Normal 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' },
|
||||
];
|
||||
Reference in New Issue
Block a user