From b90a2a63409d56ef711c9e4298c7e149d4b62de0 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Fri, 27 Feb 2026 10:09:50 -0600 Subject: [PATCH] change the name --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 45122dd..a118003 100644 --- a/server.js +++ b/server.js @@ -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 || '')