Skip to content

Commit

Permalink
Merge pull request #394 from navikt/debug/ubst2
Browse files Browse the repository at this point in the history
Feilfiks justering av fradato for hent av utvidet barnetrygd
  • Loading branch information
rinnan17 authored Nov 27, 2024
2 parents 5017f6f + 15baf28 commit 45fd7b4
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 45fd7b4

Please sign in to comment.