From 39aa21d9859203b06401eb7eae6e53f5294a3527 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 29 Jun 2023 09:58:20 -0700 Subject: [PATCH] IO-2342 Billing and Shipping Addr1 Trim --- server/accounting/qbxml/qbxml-receivables.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/accounting/qbxml/qbxml-receivables.js b/server/accounting/qbxml/qbxml-receivables.js index 629bb4dca..d74509158 100644 --- a/server/accounting/qbxml/qbxml-receivables.js +++ b/server/accounting/qbxml/qbxml-receivables.js @@ -263,9 +263,9 @@ const generateInvoiceQbxml = ( BillAddress: { Addr1: jobs_by_pk.ownr_co_nm ? jobs_by_pk.ownr_co_nm.substring(0, 30) - : `${`${jobs_by_pk.ownr_ln || ""} ${jobs_by_pk.ownr_fn || ""}` + : `${`${jobs_by_pk.ownr_ln || ""} ${jobs_by_pk.ownr_fn || ""}`}` .substring(0, 30) - .trim()}`, + .trim(), Addr2: jobs_by_pk.ownr_addr1, Addr3: jobs_by_pk.ownr_addr2, City: jobs_by_pk.ownr_city, @@ -275,9 +275,9 @@ const generateInvoiceQbxml = ( ShipAddress: { Addr1: jobs_by_pk.ownr_co_nm ? jobs_by_pk.ownr_co_nm.substring(0, 30) - : `${`${jobs_by_pk.ownr_ln || ""} ${jobs_by_pk.ownr_fn || ""}` + : `${`${jobs_by_pk.ownr_ln || ""} ${jobs_by_pk.ownr_fn || ""}`}` .substring(0, 30) - .trim()}`, + .trim(), Addr2: jobs_by_pk.ownr_addr1, Addr3: jobs_by_pk.ownr_addr2, City: jobs_by_pk.ownr_city,