fix: scope page header matches quotation page — title, number, project, valid until
This commit is contained in:
@@ -276,14 +276,11 @@ export default async function offersPdfRoutes(fastify: FastifyInstance): Promise
|
||||
scopeHtml += '<div class="scope-page">';
|
||||
scopeHtml += `<div class="page-header">
|
||||
<div class="left">
|
||||
<div class="page-title">${escapeHtml(t('scope_title'))}</div>`;
|
||||
if (quotation.scope_title) {
|
||||
scopeHtml += `<div class="scope-subtitle">${escapeHtml(quotation.scope_title)}</div>`;
|
||||
}
|
||||
if (quotation.scope_description) {
|
||||
scopeHtml += `<div class="scope-description">${escapeHtml(quotation.scope_description)}</div>`;
|
||||
}
|
||||
scopeHtml += '</div>';
|
||||
<div class="page-title">${escapeHtml(t('title'))}</div>
|
||||
<div class="quotation-number">${quotationNumber}</div>
|
||||
${quotation.project_code ? `<div class="project-code">${escapeHtml(quotation.project_code)}</div>` : ''}
|
||||
<div class="valid-until">${escapeHtml(t('valid_until'))}: ${escapeHtml(formatDate(quotation.valid_until))}</div>
|
||||
</div>`;
|
||||
if (logoImg) {
|
||||
scopeHtml += `<div class="right"><div class="logo-header">${logoImg}</div></div>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user