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

Feature/pbuc07 #311

Merged
merged 24 commits into from
Aug 20, 2024
Merged

Feature/pbuc07 #311

merged 24 commits into from
Aug 20, 2024

Conversation

MariamPervez
Copy link
Contributor

No description provided.

@MariamPervez MariamPervez requested a review from a team as a code owner August 15, 2024 11:42
else -> PENSJON
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette er bare et forslag.. litt kortere versjon av den over, begge vil fungere

private fun temaPbuc06(
    currentSed: SED?,
    enPersonOgUforeAlderUnder62: Boolean,
    saksInfo: SaksInfoSamlet?
): Tema {
    val isUforePensjon = when (currentSed) {
        is P5000 -> currentSed.hasUforePensjonType()
        is P6000 -> currentSed.hasUforePensjonType()
        is P7000 -> currentSed.hasUforePensjonType()
        is P10000 -> currentSed.hasUforePensjonType()
        else -> false
    }
    val uforeSakTypeEllerUforPerson = saksInfo?.saktype == UFOREP || enPersonOgUforeAlderUnder62
    return if (isUforePensjon || uforeSakTypeEllerUforPerson) UFORETRYGD else PENSJON
}

Copy link

@dskarpas dskarpas merged commit 9daa349 into master Aug 20, 2024
3 checks passed
@dskarpas dskarpas deleted the feature/pbuc07 branch August 20, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants