1
0
Fork 0

feat: Auftragsnummer in Auftrag-Query aufnehmen

This commit is contained in:
Jonny 2026-08-20 10:29:56 +02:00
parent 9b7dc111e7
commit 9ef5e17cba
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ export type AuftragStatus = "offen" | "zugewiesen" | "unterwegs" | "abgeschlosse
export type Auftrag = { export type Auftrag = {
id: string; id: string;
auftragsnummer: string;
status: AuftragStatus; status: AuftragStatus;
abholort: Ort; abholort: Ort;
zielort: Ort; zielort: Ort;
@ -35,7 +36,7 @@ export type Auftrag = {
}; };
const AUFTRAG_SELECT = const AUFTRAG_SELECT =
"id, status, zugewiesen_an, start_zeit, start_km, end_km, uebergabe_bestaetigt_at, vorgaenger_auftrag_id, created_at, abholort:orte!auftraege_abholort_id_fkey(id, adresse, ansprechpartner, telefon, email), zielort:orte!auftraege_zielort_id_fkey(id, adresse, ansprechpartner, telefon, email), fahrzeug:fahrzeuge(id, kennzeichen, marke, modell), erstellt_von:profiles!auftraege_erstellt_von_fkey(id, name)"; "id, auftragsnummer, status, zugewiesen_an, start_zeit, start_km, end_km, uebergabe_bestaetigt_at, vorgaenger_auftrag_id, created_at, abholort:orte!auftraege_abholort_id_fkey(id, adresse, ansprechpartner, telefon, email), zielort:orte!auftraege_zielort_id_fkey(id, adresse, ansprechpartner, telefon, email), fahrzeug:fahrzeuge(id, kennzeichen, marke, modell), erstellt_von:profiles!auftraege_erstellt_von_fkey(id, name)";
export async function listOrte(): Promise<Ort[]> { export async function listOrte(): Promise<Ort[]> {
const supabase = await createClient(); const supabase = await createClient();