Skip to content

Commit

Permalink
Different frist for anke.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvind-wedoe committed Feb 10, 2025
1 parent 95c36b8 commit 2168ac3
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 2168ac3

Please sign in to comment.