Merge remote-tracking branch 'origin/main' into dev

This commit is contained in:
Jens Cornelsen
2025-04-17 18:03:03 +02:00
13 changed files with 262 additions and 69 deletions

View File

@@ -67,9 +67,11 @@ export const GET = defineApiRoute({
const rechnung = await prisma.rechnung.findFirst({
where: {
verbrauchsausweis_wohnen: {
id: id_ausweis,
},
OR: [
{ bedarfsausweis_wohnen: { id: id_ausweis } },
{ verbrauchsausweis_wohnen: { id: id_ausweis } },
{ verbrauchsausweis_gewerbe: { id: id_ausweis } }
]
},
orderBy: {
erstellt_am: "desc",