Skip to content

Commit

Permalink
Rettet feil i periodelogikk
Browse files Browse the repository at this point in the history
  • Loading branch information
rinnan17 committed Oct 2, 2024
1 parent fefd902 commit cdd5224
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class StønadService(val persistenceService: PersistenceService) {
val periode =
persistenceService.hentPerioderForStønad(stønad.stønadsid)
.filter { it.fom.isBefore(request.dato.plusDays(1)) && (it.til == null || it.til.isAfter(request.dato)) }
.minByOrNull { it.fom }
.maxByOrNull { it.fom }
// periode er tom hvis det ikke finnes en periode for stønaden som er aktiv på angitt dato
if (periode != null) {
løpendeBidragssakListe.add(
Expand Down

0 comments on commit cdd5224

Please sign in to comment.