From af70c80e09433095db15d5ec8681f8167d4e9630 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Fri, 7 Jul 2023 09:54:19 -0700 Subject: [PATCH] IO-2337 Spread in billLines --- server/accounting/qbxml/qbxml-payables.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/accounting/qbxml/qbxml-payables.js b/server/accounting/qbxml/qbxml-payables.js index 6b9951500..26f0f2d8a 100644 --- a/server/accounting/qbxml/qbxml-payables.js +++ b/server/accounting/qbxml/qbxml-payables.js @@ -135,7 +135,10 @@ const findTaxCode = (billLine, taxcode) => { applicable_taxes: { local, state, federal }, } = billLine.applicable_taxes === null - ? { applicable_taxes: { local: false, state: false, federal: false } } + ? { + ...billLine, + applicable_taxes: { local: false, state: false, federal: false }, + } : billLine; const t = taxcode.filter( (t) =>