Nachtragungen ohne Rechnung bezahlt setzen
CI / Build (push) Successful in 1m59s
CI / Deploy (push) Successful in 1m48s

This commit is contained in:
jan
2026-05-01 18:19:30 +02:00
parent 3cb48eeb78
commit f7b8750e52
2 changed files with 21 additions and 16 deletions
-4
View File
@@ -35,10 +35,6 @@ export async function POST(_: Request, { params }: Context) {
return NextResponse.json({ error: "Bezahlt ist erst nach Freigabe moeglich." }, { status: 400 });
}
if (!expense.proofUrl || !expense.invoiceDate || !expense.documentedAt) {
return NextResponse.json({ error: "Bitte zuerst Rechnung mit Rechnungsdatum abgeben." }, { status: 400 });
}
const updatedExpense = await prisma.expense.update({
where: { id },
data: {