From e1e85214ccfedbe03f7015b94c720a88357380de Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 4 Mar 2021 16:33:36 -0800 Subject: [PATCH] Resolve sales tax code issue on payables IO-738 --- 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 622315936..a0bbfaa27 100644 --- a/server/accounting/qbxml/qbxml-payables.js +++ b/server/accounting/qbxml/qbxml-payables.js @@ -122,7 +122,10 @@ const findTaxCode = (billLine, taxcode) => { applicable_taxes: { local, state, federal }, } = billLine; const t = taxcode.filter( - (t) => t.local === local && t.state === state && t.federal === federal + (t) => + !!t.local === !!local && + !!t.state === !!state && + !!t.federal === !!federal ); if (t.length === 1) { console.log(t);