Skip to content

Commit

Permalink
fix: add monthly pay for manual calculation for accepted application (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast authored Aug 12, 2024
1 parent ab41393 commit 0d59e8d
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ const HandledView: React.FC<ApplicationReviewViewProps> = ({ data }) => {
</$ViewFieldBold>
</$GridCell>
)}
{data.calculation?.overrideMonthlyBenefitAmount && (
<$HandledRow key="manual-calculation-per-month">
<$GridCell $colSpan={9} $colStart={1}>
<$ViewField large>
{t(`${translationsBase}.common.dateRange`, {
dateRange: dateRangeRows
.at(0)
?.descriptionFi.toLocaleLowerCase(),
})}{' '}
({t('calculators.salary.manualInput').toLowerCase()})
</$ViewField>
</$GridCell>
<$GridCell $colSpan={2}>
<$ViewFieldBold large>
{formatFloatToCurrency(
data.calculation?.overrideMonthlyBenefitAmount,
'EUR',
'fi-FI',
0
)}
{t('common:utility.perMonth')}
</$ViewFieldBold>
</$GridCell>
</$HandledRow>
)}
{data.status === APPLICATION_STATUSES.ACCEPTED &&
helsinkiBenefitMonthlyRows.map((row, index) => (
<$HandledRow key={row.id}>
Expand Down

0 comments on commit 0d59e8d

Please sign in to comment.