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);