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