From 0d59e8d35171a144159664fc8839f37586e9c996 Mon Sep 17 00:00:00 2001 From: Sampo Tawast <5328394+sirtawast@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:48:26 +0300 Subject: [PATCH] fix: add monthly pay for manual calculation for accepted application (#3203) --- .../handledView/HandledView.tsx | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/frontend/benefit/handler/src/components/applicationReview/handledView/HandledView.tsx b/frontend/benefit/handler/src/components/applicationReview/handledView/HandledView.tsx index 71a067a884..e3de16df40 100644 --- a/frontend/benefit/handler/src/components/applicationReview/handledView/HandledView.tsx +++ b/frontend/benefit/handler/src/components/applicationReview/handledView/HandledView.tsx @@ -53,6 +53,31 @@ const HandledView: React.FC = ({ data }) => { )} + {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()}) + + + <$GridCell $colSpan={2}> + <$ViewFieldBold large> + {formatFloatToCurrency( + data.calculation?.overrideMonthlyBenefitAmount, + 'EUR', + 'fi-FI', + 0 + )} + {t('common:utility.perMonth')} + + + + )} {data.status === APPLICATION_STATUSES.ACCEPTED && helsinkiBenefitMonthlyRows.map((row, index) => ( <$HandledRow key={row.id}>