Verbrauchsausweis Gewerbe ausstellen

This commit is contained in:
Carl Mahnke
2025-04-15 13:36:19 +02:00
parent 5081f70570
commit 7130b6ba65
2 changed files with 6 additions and 4 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",