diff --git a/libs/application/templates/inheritance-report/src/forms/sections/applicant.ts b/libs/application/templates/inheritance-report/src/forms/sections/applicant.ts index c76525af5dbd..44934af3f015 100644 --- a/libs/application/templates/inheritance-report/src/forms/sections/applicant.ts +++ b/libs/application/templates/inheritance-report/src/forms/sections/applicant.ts @@ -10,6 +10,7 @@ import { format as formatNationalId } from 'kennitala' import { removeCountryCode } from '@island.is/application/ui-components' import { m } from '../../lib/messages' import { RelationEnum } from '../../types' +import { PREPAID_INHERITANCE } from '../../lib/constants' export const applicant = buildSection({ id: 'applicantsInformation', @@ -18,7 +19,10 @@ export const applicant = buildSection({ buildMultiField({ id: 'applicant', title: m.applicantsInfo, - description: m.applicantsInfoSubtitle, + description: ({ answers }) => + answers.applicationFor === PREPAID_INHERITANCE + ? m.applicantsInfoPrePaidSubtitle + : m.applicantsInfoSubtitle, children: [ buildTextField({ id: 'applicant.nationalId', diff --git a/libs/application/templates/inheritance-report/src/forms/sections/heirs.ts b/libs/application/templates/inheritance-report/src/forms/sections/heirs.ts index 5f6f38eb78eb..6d13fc8b4fd6 100644 --- a/libs/application/templates/inheritance-report/src/forms/sections/heirs.ts +++ b/libs/application/templates/inheritance-report/src/forms/sections/heirs.ts @@ -22,6 +22,7 @@ import { shouldShowCustomSpouseShare, valueToNumber, } from '../../lib/utils/helpers' +import { PREPAID_INHERITANCE } from '../../lib/constants' export const heirs = buildSection({ id: 'heirs', @@ -81,7 +82,10 @@ export const heirs = buildSection({ buildMultiField({ id: 'heirs', title: m.heirsAndPartition, - description: m.heirsAndPartitionDescription, + description: ({ answers }) => + answers.applicationFor === PREPAID_INHERITANCE + ? m.heirsAndPartitionPrePaidDescription + : m.heirsAndPartitionDescription, children: [ buildDescriptionField({ id: 'heirs.total', diff --git a/libs/application/templates/inheritance-report/src/lib/messages.ts b/libs/application/templates/inheritance-report/src/lib/messages.ts index c13308ad57bc..1d764791a8e4 100644 --- a/libs/application/templates/inheritance-report/src/lib/messages.ts +++ b/libs/application/templates/inheritance-report/src/lib/messages.ts @@ -232,6 +232,12 @@ export const m = defineMessages({ 'Vinsamlegast farðu yfir upplýsingarnar og athugaðu hvort þær séu réttar.', description: '', }, + applicantsInfoPrePaidSubtitle: { + id: 'ir.application:applicantsInfoPrePaidSubtitle', + defaultMessage: + 'Vinsamlegast farðu yfir upplýsingarnar og staðfestu hvort þær séu réttar.', + description: '', + }, applicantsPrePaidInfoSubtitle: { id: 'ir.application:applicantsPrePaidInfoSubtitle', defaultMessage: @@ -345,6 +351,11 @@ export const m = defineMessages({ 'Vinsamlegast tilgreindu allar hjúskapareignir beggja hjóna utan einstaklingsatvinnurekstrar á dánardegi hins látna. Einnig séreign hins látna. Ef hinn látni átti ekki fasteign vinsamlegast haltu áfram í ferlinu.', description: '', }, + propertiesDescriptionPrePaidAssets: { + id: 'ir.application:propertiesDescriptionPrePaidAssets#markdown', + defaultMessage: 'Lorem ipsum lorem ipsum', + description: '', + }, propertiesDescriptionInventory: { id: 'ir.application:propertiesDescriptionInventory#markdown', defaultMessage: @@ -395,11 +406,6 @@ export const m = defineMessages({ }, // Estate Properties - Prepaid - propertiesDescriptionPrePaidAssets: { - id: 'ir.application:propertiesDescriptionPrePaidAssets#markdown', - defaultMessage: 'Lorem ipsum lorem ipsum', - description: '', - }, propertiesDescriptionPrePaidStocks: { id: 'ir.application:propertiesDescriptionPrePaidStocks#markdown', defaultMessage: 'Lorem ipsum lorem ipsum', @@ -1376,6 +1382,12 @@ export const m = defineMessages({ 'Skrá skal netfang erfingja vegna tilkynninga skattstjóra skv. 9. og 10. gr. laga nr. 14/2004.', description: '', }, + heirsAndPartitionPrePaidDescription: { + id: 'ir.application:heirsAndPartitionPrePaidDescription', + defaultMessage: + 'Skrá skal netfang erfingja vegna tilkynninga skattstjóra skv. 9. og 10. gr. laga nr. 14/2004.', + description: '', + }, heirsReminderToFillInSpouse: { id: 'ir.application:heirsReminderToFillInSpouse', defaultMessage: 'Athugið að passa þarf að skrá inn upplýsingar um maka.',