Skip to content

Commit

Permalink
Merge pull request #1331 from navikt/new_frist
Browse files Browse the repository at this point in the history
Different frist for anke.
  • Loading branch information
oyvind-wedoe authored Feb 10, 2025
2 parents 95c36b8 + 2168ac3 commit 5e2dcfe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/kotlin/no/nav/klage/oppgave/domain/klage/Mottak.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ class Mottak(
}

fun generateFrist(): LocalDate {
return frist ?: (sakMottattKaDato.toLocalDate() + Period.ofWeeks(12))
return frist ?: getDefaultFristForType(sakMottattKaDato = sakMottattKaDato, type = type)
}

private fun getDefaultFristForType(sakMottattKaDato: LocalDateTime, type: Type): LocalDate {
return when(type) {
Type.ANKE -> (sakMottattKaDato.toLocalDate() + Period.ofWeeks(11))
else -> (sakMottattKaDato.toLocalDate() + Period.ofWeeks(12))
}
}

fun mapToBehandlingHjemler(): Set<Hjemmel> =
Expand Down

0 comments on commit 5e2dcfe

Please sign in to comment.