fix: move quotationNumber declaration before scope HTML usage
This commit is contained in:
@@ -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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user