Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(efs): Efs db tweaks 21.11 #16977

Merged
merged 6 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ const Debt = ({
return (
<Box marginBottom={2}>
{description && (
<TopRow title={description} value={propertyValuation ?? ''} />
<TopRow
title={description + ' (' + debtType + ')'}
value={propertyValuation ?? ''}
/>
albinagu marked this conversation as resolved.
Show resolved Hide resolved
)}
<Box marginLeft={[0, 4]}>
{nationalId && (
Expand All @@ -133,7 +136,6 @@ const Debt = ({
/>
)}
<Row title={formatMessage(m.debtsLoanIdentity)} value={assetNumber} />
<Row title={formatMessage(m.debtType)} value={debtType} />
</Box>
</Box>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export const PrintScreen = () => {
colorScheme="default"
icon="print"
iconType="filled"
onClick={() => window.print()}
onClick={(e) => {
e.preventDefault()
window.print()
}}
preTextIconType="filled"
variant="ghost"
></Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,12 @@ export const assets = buildSection({
backgroundColor: 'white',
options: [{ value: YES, label: m.assetsOverviewConfirmation }],
}),
buildCustomField({
title: '',
id: 'overviewPrint',
doesNotRequireAnswer: true,
component: 'PrintScreen',
}),
],
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,25 @@ export const debtsAndFuneralCost = buildSection({
],
hideDeceasedShare: true,
repeaterButtonText: m.debtsRepeaterButton,
fromExternalData: 'otherDebts',
sumField: 'propertyValuation',
selections: [
{
label: DebtTypes.Overdraft,
label: DebtTypes.PublicCharges,
},
{
label: DebtTypes.CreditCard,
label: DebtTypes.Loan,
},
{
label: DebtTypes.Loan,
label: DebtTypes.CreditCard,
},
{
label: DebtTypes.InsuranceCompany,
label: DebtTypes.Overdraft,
},
{
label: DebtTypes.PropertyFees,
},
{
label: DebtTypes.PropertyFees,
label: DebtTypes.OtherDebts,
},
],
},
Expand Down Expand Up @@ -196,6 +195,12 @@ export const debtsAndFuneralCost = buildSection({
backgroundColor: 'white',
options: [{ value: YES, label: m.debtsOverviewConfirmation }],
}),
buildCustomField({
title: '',
id: 'overviewPrint',
doesNotRequireAnswer: true,
component: 'PrintScreen',
}),
],
}),
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
buildAlertMessageField,
buildCheckboxField,
buildCustomField,
buildDescriptionField,
Expand All @@ -10,6 +11,7 @@ import {
buildSubSection,
buildTextField,
getValueViaPath,
NO,
YES,
} from '@island.is/application/core'
import { formatCurrency } from '@island.is/application/ui-components'
Expand Down Expand Up @@ -89,6 +91,25 @@ export const heirs = buildSection({
id: 'heirs.hasModified',
title: '',
}),
buildAlertMessageField({
id: 'reminderToFillInSpouse',
title: '',
message: m.heirsReminderToFillInSpouse,
alertType: 'info',
marginBottom: 'containerGutter',
condition: (answers) => {
return (
getValueViaPath<string>(
answers,
'customShare.deceasedWasMarried',
) === YES &&
getValueViaPath<string>(
answers,
'customShare.hasCustomSpouseSharePercentage',
) === NO
)
},
}),
buildCustomField(
{
title: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,11 @@ export const m = defineMessages({
'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.',
description: '',
},
heirsName: {
id: 'ir.application:heirsName',
defaultMessage: 'Nafn',
Expand Down
4 changes: 2 additions & 2 deletions libs/application/templates/inheritance-report/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export enum DebtTypes {
Overdraft = 'Yfirdráttur',
CreditCard = 'Kreditkort',
Loan = 'Lán',
InsuranceCompany = 'Tryggingafélag',
PropertyFees = 'Fastagjöld',
PropertyFees = 'Fasteignagjöld',
OtherDebts = 'Aðrar skuldir',
PublicCharges = 'Opinber gjöld',
}