Resolve sales tax code issue on payables IO-738
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user