IO-2337 Billline.applicible_taxes=null and billline.applicible_taxes on entry data cleanup

This commit is contained in:
Allan Carr
2023-06-15 09:06:38 -07:00
parent 91279c27fe
commit 255d65e47d
2 changed files with 24 additions and 10 deletions

View File

@@ -133,7 +133,10 @@ const generateBillLine = (billLine, responsibilityCenters, jobClass) => {
const findTaxCode = (billLine, taxcode) => {
const {
applicable_taxes: { local, state, federal },
} = billLine;
} =
billLine.applicable_taxes === null
? { applicable_taxes: { local: false, state: false, federal: false } }
: billLine;
const t = taxcode.filter(
(t) =>
!!t.local === !!local &&