Merged in feature/IO-2337-billlines-applicable_taxes (pull request #878)

IO-2337 Billline.applicible_taxes=null and billline.applicible_taxes on entry data cleanup
This commit is contained in:
Allan Carr
2023-07-04 17:32:22 +00:00
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 &&