Skip to content

Commit

Permalink
Lagt til nullhåndtering på tildato ubst og ks
Browse files Browse the repository at this point in the history
  • Loading branch information
rinnan17 committed Oct 24, 2024
1 parent daece93 commit bc6efb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class HentKontantstøtteService(private val familieKsSakConsumer: FamilieKsSakCo
partPersonId = personIdOgPeriodeRequest.personId,
barnPersonId = ks.barn.ident,
periodeFra = LocalDate.parse("${ks.fomMåned}-01"),
periodeTil = LocalDate.parse("${ks.tomMåned}-01").plusMonths(1) ?: null,
periodeTil = ks.tomMåned?.let { LocalDate.parse("$it-01").plusMonths(1) },
beløp = ks.barn.beløp,
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class HentUtvidetBarnetrygdOgSmåbarnstilleggService(private val familieBaSakCon
personId = ident,
type = it.stønadstype.toString(),
periodeFra = LocalDate.parse("${it.fomMåned}-01"),
periodeTil = LocalDate.parse("${it.tomMåned}-01").plusMonths(1) ?: null,
periodeTil = it.tomMåned?.let { LocalDate.parse("$it-01").plusMonths(1) },
beløp = BigDecimal.valueOf(it.beløp),
manueltBeregnet = it.manueltBeregnet,
),
Expand Down

0 comments on commit bc6efb4

Please sign in to comment.