Skip to content

Commit

Permalink
Feilfiks endring av virkning skal slette manuelle inntekter som ikke …
Browse files Browse the repository at this point in the history
…er tatt med
  • Loading branch information
ugur93 committed Dec 5, 2024
1 parent 863d316 commit f414a0f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class InntektService(
it.datoFom = it.bestemDatoFomForOffentligInntekt()
it.datoTom = it.bestemDatoTomForOffentligInntekt()
}

val manuelleInntekterSomErFjernet = behandling.inntekter.filter { !it.taMed && it.kilde == Kilde.MANUELL }
behandling.inntekter.removeAll(manuelleInntekterSomErFjernet)
}

@Transactional
Expand Down

0 comments on commit f414a0f

Please sign in to comment.