Dodanie raportów, dnd, listy gości i innych.
This commit is contained in:
@@ -28,6 +28,9 @@ export interface Reservation {
|
||||
meter_start: number | null;
|
||||
/** Stan licznika energii na końcu pobytu (kWh) */
|
||||
meter_end: number | null;
|
||||
guest_id: number | null;
|
||||
/** Czy pobyt został rozliczony z gościem */
|
||||
settled: boolean;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
@@ -109,3 +112,40 @@ export interface RevenueStats {
|
||||
nights_confirmed: number;
|
||||
revenue_confirmed: number;
|
||||
}
|
||||
|
||||
// --- Goście ---
|
||||
|
||||
export interface Guest {
|
||||
id: number;
|
||||
name: string;
|
||||
address: string | null;
|
||||
phone: string | null;
|
||||
notes: string | null;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
/** Wiersz listy gości z agregacją pobytów. */
|
||||
export interface GuestListRow extends Guest {
|
||||
stay_count: number;
|
||||
last_departure: string | null;
|
||||
}
|
||||
|
||||
// --- Cennik sezonowy ---
|
||||
|
||||
export interface PriceSeason {
|
||||
id: number;
|
||||
/** null = obowiązuje wszystkie domki */
|
||||
cabin_id: number | null;
|
||||
/** Zakres [date_from, date_to) */
|
||||
date_from: string;
|
||||
date_to: string;
|
||||
price: number;
|
||||
}
|
||||
|
||||
export type PriceSeasonInput = Omit<PriceSeason, "id">;
|
||||
|
||||
// --- Raporty ---
|
||||
|
||||
export interface CabinReport extends RevenueStats {
|
||||
cabin_id: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user