Skip to content

Commit

Permalink
feat(income-plan): Temporarily don't show withholding tax (#17726)
Browse files Browse the repository at this point in the history
* temporarily not show withholding tax info

* tweak

* chore: nx format:write update dirty files

---------

Co-authored-by: andes-it <[email protected]>
  • Loading branch information
ylfahfa and andes-it authored Jan 30, 2025
1 parent 90e4fdb commit db40153
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,69 +317,71 @@ const IncomePlanTemplate: ApplicationTemplate<
income.incomeCategoryName,
)
})
} else {
withholdingTax &&
withholdingTax.incomeTypes?.forEach((income, i) => {
set(
answers,
`incomePlanTable[${i}].incomeType`,
income.incomeTypeName,
)
set(
answers,
`incomePlanTable[${i}].incomePerYear`,
String(income.total),
)
set(answers, `incomePlanTable[${i}].currency`, ISK)
set(answers, `incomePlanTable[${i}].income`, RatioType.YEARLY)
set(
answers,
`incomePlanTable[${i}].incomeCategory`,
income.categoryName,
)

set(
answers,
`incomePlanTable[${i}].january`,
String(income.january),
)
set(
answers,
`incomePlanTable[${i}].february`,
String(income.february),
)
set(answers, `incomePlanTable[${i}].march`, String(income.march))
set(answers, `incomePlanTable[${i}].april`, String(income.april))
set(answers, `incomePlanTable[${i}].may`, String(income.may))
set(answers, `incomePlanTable[${i}].june`, String(income.june))
set(answers, `incomePlanTable[${i}].july`, String(income.july))
set(
answers,
`incomePlanTable[${i}].august`,
String(income.august),
)
set(
answers,
`incomePlanTable[${i}].september`,
String(income.september),
)
set(
answers,
`incomePlanTable[${i}].october`,
String(income.october),
)
set(
answers,
`incomePlanTable[${i}].november`,
String(income.november),
)
set(
answers,
`incomePlanTable[${i}].december`,
String(income.december),
)
})
}
//Temporarily removing this until withholdingTax endpoint provides more accurate info
// } else {
// withholdingTax &&
// withholdingTax.incomeTypes?.forEach((income, i) => {
// set(
// answers,
// `incomePlanTable[${i}].incomeType`,
// income.incomeTypeName,
// )
// set(
// answers,
// `incomePlanTable[${i}].incomePerYear`,
// String(income.total),
// )
// set(answers, `incomePlanTable[${i}].currency`, ISK)
// set(answers, `incomePlanTable[${i}].income`, RatioType.YEARLY)
// set(
// answers,
// `incomePlanTable[${i}].incomeCategory`,
// income.categoryName,
// )

// set(
// answers,
// `incomePlanTable[${i}].january`,
// String(income.january),
// )
// set(
// answers,
// `incomePlanTable[${i}].february`,
// String(income.february),
// )
// set(answers, `incomePlanTable[${i}].march`, String(income.march))
// set(answers, `incomePlanTable[${i}].april`, String(income.april))
// set(answers, `incomePlanTable[${i}].may`, String(income.may))
// set(answers, `incomePlanTable[${i}].june`, String(income.june))
// set(answers, `incomePlanTable[${i}].july`, String(income.july))
// set(
// answers,
// `incomePlanTable[${i}].august`,
// String(income.august),
// )
// set(
// answers,
// `incomePlanTable[${i}].september`,
// String(income.september),
// )
// set(
// answers,
// `incomePlanTable[${i}].october`,
// String(income.october),
// )
// set(
// answers,
// `incomePlanTable[${i}].november`,
// String(income.november),
// )
// set(
// answers,
// `incomePlanTable[${i}].december`,
// String(income.december),
// )
// })
// }

return context
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export const OldAgePensionForm: Form = buildForm({

return currentEmployer?.ratioType === RatioType.YEARLY
},
placeholder: '1%',
placeholder: '1-50%',
variant: 'number',
width: 'full',
}),
Expand Down

0 comments on commit db40153

Please sign in to comment.