Skip to content

Commit

Permalink
fix(inheritance-report): adding funeral service cost (#17159)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and thorhildurt committed Dec 11, 2024
1 parent 77f23da commit a36eaec
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const FuneralCost: FC<
const rentCost = valueToNumber(values?.rent)
const foodCost = valueToNumber(values?.food)
const tombstoneCost = valueToNumber(values?.tombstone)
const servicesCost = valueToNumber(values?.service)

let total =
buildCost +
Expand All @@ -85,7 +86,8 @@ export const FuneralCost: FC<
musicCost +
rentCost +
foodCost +
tombstoneCost
tombstoneCost +
servicesCost

if (hasOther) {
total += valueToNumber(values?.other)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ export const OverviewDebts: FC<React.PropsWithChildren<FieldBaseProps>> = ({
getValueViaPath<string>(answers, 'funeralCost.tombstone') || '0',
)}
/>
<Row
title={formatMessage(m.funeralServiceCost)}
value={formatCurrency(
getValueViaPath<string>(answers, 'funeralCost.service') || '0',
)}
/>
<Row
title={formatMessage(m.funeralOtherCost)}
value={formatCurrency(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ export const debtsAndFuneralCost = buildSection({
id: 'tombstone',
title: m.funeralTombstoneCost,
},
{
id: 'service',
title: m.funeralServiceCost,
},
],
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,11 @@ export const m = defineMessages({
defaultMessage: 'Legsteinn (áætlaður kostnaður)',
description: '',
},
funeralServiceCost: {
id: 'ir.application:funeralServiceCost',
defaultMessage: 'Útfararþjónusta',
description: '',
},
funeralOtherCostQuestion: {
id: 'ir.application:funeralOtherCostQuestion',
defaultMessage: 'Annar kostnaður?',
Expand Down Expand Up @@ -1253,7 +1258,7 @@ export const m = defineMessages({
},
deceasedShare: {
id: 'ir.application:deceasedShare',
defaultMessage: 'Hlutfall séreignar',
defaultMessage: 'Búshluti maka',
description: '',
},
spousesShareDescription: {
Expand Down

0 comments on commit a36eaec

Please sign in to comment.