diff --git a/src/routes/accounting.js b/src/routes/accounting.js index dda7274..b20fe7e 100644 --- a/src/routes/accounting.js +++ b/src/routes/accounting.js @@ -218,6 +218,9 @@ router.get('/reports/customer-revenue/pdf', async (req, res) => { html = html .replace('{{LOGO_HTML}}', logoHTML) + .replace('{{COMPANY_NAME}}', 'Bay Area Affiliates, Inc.') + .replace('{{COMPANY_ADDRESS}}', '1001 Blucher Street
Corpus Christi, Texas 78401') + .replace('{{SLOGAN}}', 'Providing IT Services and Support in South Texas Since 1996') .replace('{{DATE_RANGE}}', dateRange) .replace('{{GENERATED_DATE}}', generated) .replace('{{ROWS}}', rowsHtml); diff --git a/templates/customer-revenue-template.html b/templates/customer-revenue-template.html index ba97b1e..5d3f897 100644 --- a/templates/customer-revenue-template.html +++ b/templates/customer-revenue-template.html @@ -6,15 +6,15 @@ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; } .container { max-width: 8.5in; margin: 0 auto; padding: 20px; } - .header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #333; } + .header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #333; position: relative; } .company-info { display: flex; align-items: flex-start; gap: 15px; } .logo { width: 50px; height: 50px; } .company-details h1 { font-size: 16px; font-weight: normal; margin-bottom: 2px; } .company-details p { font-size: 14px; line-height: 1.4; } .tagline { text-align: right; font-style: italic; font-size: 14px; margin-bottom: 20px; } - .report-info { margin-bottom: 20px; } - .report-info h2 { font-size: 18px; margin-bottom: 4px; } - .report-info p { font-size: 13px; color: #555; } + .document-type { font-size: 24px; font-weight: bold; color: #333; position: absolute; bottom: 0; } + .report-meta { margin-bottom: 20px; } + .report-meta p { font-size: 13px; color: #555; } .items-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; } .items-table th { background-color: #f5f5f5; border: 1px solid #000; padding: 8px; font-weight: bold; text-align: center; } .items-table td { border: 1px solid #000; padding: 8px; } @@ -23,6 +23,7 @@ .items-table tr.footer-row td { background-color: #f5f5f5; font-weight: bold; border-top: 2px solid #000; } .items-table tr.footer-row td.total-label { text-align: right; } .items-table tr.footer-row td.total-amount { text-align: right; } + tr { page-break-inside: avoid; } @@ -31,15 +32,19 @@
{{LOGO_HTML}}
-

Thumann IT LLC

-

4639 Corona Dr, Ste 39
Corpus Christi, TX 78411

+

{{COMPANY_NAME}}

+

{{COMPANY_ADDRESS}}

+
+
+ {{SLOGAN}} +
+
+
CUSTOMER REVENUE REPORT
-
IT Services & Consulting
-
-

Customer Revenue Report

+

Period: {{DATE_RANGE}} · Generated: {{GENERATED_DATE}}