Skip to content

Commit

Permalink
Feilfiks justering av fradato for hent av utvidet barnetrygd
Browse files Browse the repository at this point in the history
  • Loading branch information
rinnan17 committed Nov 27, 2024
1 parent 5017f6f commit 15baf28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class HentGrunnlagService(

fun sjekkOgJusterDato(dato: LocalDate): LocalDate {
// Hvis dato er mer enn 5 år tilbake i tid, settes den til dagens dato minus 5 år
return if (Period.between(dato, LocalDate.now()).years > 5) {
return if (Period.between(dato, LocalDate.now()).years >= 5) {
LocalDate.now().minusYears(5)
} else {
dato
Expand Down

0 comments on commit 15baf28

Please sign in to comment.