feat(orders): add rejected status to order schema and admin table views
All checks were successful
Staging Build / build (push) Successful in 2m49s

This commit is contained in:
DanielS
2026-07-08 10:13:21 +02:00
parent cc7445e4c5
commit bffaca1d63
6 changed files with 19 additions and 3 deletions

View File

@@ -292,7 +292,7 @@ export async function submitOrder(params: {
export async function updateOrderStatus(
orderId: string,
newStatus: 'pending' | 'active' | 'completed' | 'cancelled'
newStatus: 'pending' | 'active' | 'completed' | 'cancelled' | 'rejected'
) {
const admin = createAdminClient()
@@ -337,6 +337,7 @@ export async function updateOrderStatus(
active: 'In Bearbeitung',
completed: 'Abgeschlossen',
cancelled: 'Storniert',
rejected: 'Abgelehnt',
}
const oldLabel = statusLabelMap[oldStatus] || oldStatus
const newLabel = statusLabelMap[newStatus] || newStatus