forked from fahrPool/fahrPool
feat: Auftragsnummer in Auftrag-Query aufnehmen
This commit is contained in:
parent
9b7dc111e7
commit
9ef5e17cba
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue