Skip to content

Commit

Permalink
Underhold lagre andre barn til BM
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Dec 26, 2024
1 parent 5f59778 commit c7ab0d2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,11 @@ class Dtomapper(
}?.filter {
it.borISammeHusstandDtoListe.any { p ->
val periodeBorHosBP =
ÅrMånedsperiode(p.periodeFra!!.withDayOfMonth(1), p.periodeTil?.withDayOfMonth(1)?.minusDays(1))
if (p.periodeFra!!.withDayOfMonth(1) == p.periodeTil?.withDayOfMonth(1)) {
ÅrMånedsperiode(p.periodeFra!!.withDayOfMonth(1), p.periodeTil?.withDayOfMonth(1))
} else {
ÅrMånedsperiode(p.periodeFra!!.withDayOfMonth(1), p.periodeTil?.withDayOfMonth(1)?.minusDays(1))
}
val periodeBPErInnenfor =
periodeBorHosBP.fom >= periode.fom &&
periodeBorHosBP.til != null &&
Expand Down

0 comments on commit c7ab0d2

Please sign in to comment.