change the name

This commit is contained in:
Andreas Knuth 2026-02-27 10:09:50 -06:00
parent 667a4c2a48
commit b90a2a6340
1 changed files with 2 additions and 2 deletions

View File

@ -1403,7 +1403,7 @@ app.get('/api/invoices/:id/pdf', async (req, res) => {
html = html
.replace('{{LOGO_HTML}}', logoHTML)
.replace('{{CUSTOMER_NAME}}', invoice.customer_name || '')
.replace('{{CUSTOMER_NAME}}', invoice.bill_to_name || invoice.customer_name || '')
.replace('{{CUSTOMER_STREET}}', streetBlock)
.replace('{{CUSTOMER_CITY}}', invoice.city || '')
.replace('{{CUSTOMER_STATE}}', invoice.state || '')
@ -1646,7 +1646,7 @@ app.get('/api/invoices/:id/html', async (req, res) => {
html = html
.replace('{{LOGO_HTML}}', logoHTML)
.replace('{{CUSTOMER_NAME}}', invoice.customer_name || '')
.replace('{{CUSTOMER_NAME}}', invoice.bill_to_name || invoice.customer_name || '')
.replace('{{CUSTOMER_STREET}}', streetBlock)
.replace('{{CUSTOMER_CITY}}', invoice.city || '')
.replace('{{CUSTOMER_STATE}}', invoice.state || '')