Skip to content

Commit

Permalink
FIX: Løsner validering på arbeidsperiode
Browse files Browse the repository at this point in the history
  • Loading branch information
pekern committed Apr 26, 2024
1 parent e1c73bb commit e8005cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static void verifiserOpprettetAndel(BeregningsgrunnlagPrStatusOgAndelDto
Objects.requireNonNull(andel.getBeregningsperiodeFom(), "BeregningsperiodeFom " + andel);
Objects.requireNonNull(andel.getBeregningsperiodeTom(), "BeregningsperiodeTom " + andel);
}
if (andel.getBgAndelArbeidsforhold().isPresent()) {
if (andel.getBgAndelArbeidsforhold().isPresent() && andel.getKilde().equals(AndelKilde.PROSESS_START)) {
BGAndelArbeidsforholdDto arbFor = andel.getBgAndelArbeidsforhold().get();
Objects.requireNonNull(arbFor.getArbeidsperiodeFom(), "arbeidsperiodeFom " + andel);
Objects.requireNonNull(arbFor.getArbeidsperiodeTom(), "arbeidsperiodeTom " + andel);
Expand Down

0 comments on commit e8005cf

Please sign in to comment.