fix: move quotationNumber declaration before scope HTML usage

This commit is contained in:
BOHA
2026-03-24 10:46:24 +01:00
parent ff05f98d14
commit a8195d7d49

View File

@@ -270,6 +270,8 @@ export default async function offersPdfRoutes(fastify: FastifyInstance): Promise
totalsHtml += `<div class="exchange-rate">${escapeHtml(t('exchange_rate'))}: ${formatNum(exchangeRate, 4)}</div>`;
}
const quotationNumber = escapeHtml(quotation.quotation_number);
// Scope HTML
let scopeHtml = '';
if (hasScopeContent) {
@@ -299,7 +301,6 @@ export default async function offersPdfRoutes(fastify: FastifyInstance): Promise
scopeHtml += '</div>';
}
const quotationNumber = escapeHtml(quotation.quotation_number);
const pageLabel = escapeHtml(t('page'));
const ofLabel = escapeHtml(t('of'));