fix for wrong company name

This commit is contained in:
2026-06-10 16:02:05 -05:00
parent fb12d66759
commit 5ff97877c3
2 changed files with 17 additions and 9 deletions

View File

@@ -218,6 +218,9 @@ router.get('/reports/customer-revenue/pdf', async (req, res) => {
html = html html = html
.replace('{{LOGO_HTML}}', logoHTML) .replace('{{LOGO_HTML}}', logoHTML)
.replace('{{COMPANY_NAME}}', 'Bay Area Affiliates, Inc.')
.replace('{{COMPANY_ADDRESS}}', '1001 Blucher Street<br>Corpus Christi, Texas 78401')
.replace('{{SLOGAN}}', 'Providing IT Services and Support in South Texas Since 1996')
.replace('{{DATE_RANGE}}', dateRange) .replace('{{DATE_RANGE}}', dateRange)
.replace('{{GENERATED_DATE}}', generated) .replace('{{GENERATED_DATE}}', generated)
.replace('{{ROWS}}', rowsHtml); .replace('{{ROWS}}', rowsHtml);

View File

@@ -6,15 +6,15 @@
* { margin: 0; padding: 0; box-sizing: border-box; } * { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; } 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; } .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; } .company-info { display: flex; align-items: flex-start; gap: 15px; }
.logo { width: 50px; height: 50px; } .logo { width: 50px; height: 50px; }
.company-details h1 { font-size: 16px; font-weight: normal; margin-bottom: 2px; } .company-details h1 { font-size: 16px; font-weight: normal; margin-bottom: 2px; }
.company-details p { font-size: 14px; line-height: 1.4; } .company-details p { font-size: 14px; line-height: 1.4; }
.tagline { text-align: right; font-style: italic; font-size: 14px; margin-bottom: 20px; } .tagline { text-align: right; font-style: italic; font-size: 14px; margin-bottom: 20px; }
.report-info { margin-bottom: 20px; } .document-type { font-size: 24px; font-weight: bold; color: #333; position: absolute; bottom: 0; }
.report-info h2 { font-size: 18px; margin-bottom: 4px; } .report-meta { margin-bottom: 20px; }
.report-info p { font-size: 13px; color: #555; } .report-meta p { font-size: 13px; color: #555; }
.items-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; } .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 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; } .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 { 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-label { text-align: right; }
.items-table tr.footer-row td.total-amount { text-align: right; } .items-table tr.footer-row td.total-amount { text-align: right; }
tr { page-break-inside: avoid; }
</style> </style>
</head> </head>
<body> <body>
@@ -31,15 +32,19 @@
<div class="company-info"> <div class="company-info">
{{LOGO_HTML}} {{LOGO_HTML}}
<div class="company-details"> <div class="company-details">
<h1>Thumann IT LLC</h1> <h1>{{COMPANY_NAME}}</h1>
<p>4639 Corona Dr, Ste 39<br>Corpus Christi, TX 78411</p> <p>{{COMPANY_ADDRESS}}</p>
</div> </div>
</div> </div>
<div>
<div class="tagline">
<em>{{SLOGAN}}</em>
</div>
</div>
<div class="document-type">CUSTOMER REVENUE REPORT</div>
</div> </div>
<div class="tagline">IT Services &amp; Consulting</div>
<div class="report-info"> <div class="report-meta">
<h2>Customer Revenue Report</h2>
<p>Period: {{DATE_RANGE}} &middot; Generated: {{GENERATED_DATE}}</p> <p>Period: {{DATE_RANGE}} &middot; Generated: {{GENERATED_DATE}}</p>
</div> </div>