ID Verbrauchsausweis

This commit is contained in:
Moritz Utcke
2025-04-07 04:27:12 -04:00
parent f9538e770a
commit 32d8e2383e
3 changed files with 14 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import { AufnahmeClient, ObjektClient, VerbrauchsausweisWohnenClient } from "#components/Ausweis/types.js";
import { getKlimafaktoren } from "#lib/Klimafaktoren.js";
import { getHeizwertfaktor } from "#lib/server/Heizwertfaktor.js";
import { Enums } from "#lib/client/prisma";
import { Enums } from "#lib/client/prisma.js";
import moment from "moment";
export function energetischeNutzflaecheVerbrauchsausweisWohnen_2016(
@@ -265,7 +265,7 @@ export async function endEnergieVerbrauchVerbrauchsausweis_2016(
brennstoff_2: brennstoff_2,
klimafaktoren: klimafaktoren,
kuehlungsZuschlag: Math.round(kuehlungsZuschlag),
durchschnittsKlimafaktor: Math.round(durchschnittsKlimafaktor),
durchschnittsKlimafaktor: Math.round(durchschnittsKlimafaktor * 100) / 100,
ausweis: ausweis,
anteil_heizung_1: 1 - (ausweis.anteil_warmwasser_1 || 0) / 100,

View File

@@ -30,6 +30,12 @@ export async function pdfVerbrauchsausweisGewerbe(ausweis: VerbrauchsausweisGewe
const form = pdf.getForm()
form.updateFieldAppearances(font)
pages[0].drawText(`ID: ${aufnahme.id || ""}`, {
x: 211,
y: height - 112.5,
size: 10
})
pages[0].drawText(aufnahme.gebaeudetyp || "", {
x: 211,
y: height - 166,

View File

@@ -27,6 +27,12 @@ export async function pdfVerbrauchsausweisWohnen(ausweis: VerbrauchsausweisWohne
const font = await pdf.embedFont(StandardFonts.Helvetica)
const bold = await pdf.embedFont(StandardFonts.HelveticaBold)
pages[0].drawText(`ID: ${aufnahme.id || ""}`, {
x: 211,
y: height - 112.5,
size: 10
})
pages[0].drawText(aufnahme.gebaeudetyp || "", {
x: 211,
y: height - 166,