@@ -85,14 +85,14 @@ public InnhentingInfotrygdTjeneste(InfotrygdGrunnlagAggregator infotrygdGrunnlag
85
85
}
86
86
87
87
public List <InfotrygdYtelseGrunnlag > getInfotrygdYtelser (PersonIdent ident , IntervallEntitet periode ) {
88
- LocalDate innhentFom = periode .getFomDato ();
88
+ LocalDate innhentFom = periode .getFomDato ();
89
89
List <Grunnlag > rest = infotrygdGrunnlag .hentAggregertGrunnlag (ident .getIdent (), innhentFom , periode .getTomDato ());
90
90
91
91
return mapTilInfotrygdYtelseGrunnlag (rest , innhentFom );
92
92
}
93
93
94
94
public List <InfotrygdYtelseGrunnlag > getInfotrygdYtelserFailSoft (PersonIdent ident , IntervallEntitet periode ) {
95
- LocalDate innhentFom = periode .getFomDato ();
95
+ LocalDate innhentFom = periode .getFomDato ();
96
96
List <Grunnlag > rest = infotrygdGrunnlag .hentAggregertGrunnlagFailSoft (ident .getIdent (), innhentFom , periode .getTomDato ());
97
97
98
98
return mapTilInfotrygdYtelseGrunnlag (rest , innhentFom );
@@ -119,6 +119,14 @@ private InfotrygdYtelseGrunnlag restTilInfotrygdYtelseGrunnlag(Grunnlag grunnlag
119
119
return null ;
120
120
}
121
121
Periode fraSaksdata = utledPeriode (grunnlag .getIverksatt (), grunnlag .getOpphørFom (), grunnlag .getRegistrert ());
122
+ if (grunnlag .getOpphørFom () != null ) {
123
+ LOG .info ("Infotrygdgrunnlag: OpphørFom: {}, Iverksatt: {}, Registrert: {}, Periode: {}" ,
124
+ grunnlag .getOpphørFom (),
125
+ grunnlag .getIverksatt (),
126
+ grunnlag .getRegistrert (),
127
+ grunnlag .getPeriode () == null ? "IKKE SATT" : grunnlag .getPeriode ());
128
+
129
+ }
122
130
Periode brukPeriode = grunnlag .getPeriode () != null ? grunnlag .getPeriode () : fraSaksdata ;
123
131
Integer dekningsgrad = grunnlag .getDekningsgrad () != null ? grunnlag .getDekningsgrad ().getProsent () : null ;
124
132
Arbeidskategori arbeidskategori = grunnlag .getKategori () == null ? Arbeidskategori .UGYLDIG :
@@ -169,7 +177,7 @@ private YtelseStatus mapYtelseStatus(Grunnlag grunnlag) {
169
177
private InfotrygdYtelseArbeid arbeidsforholdTilInfotrygdYtelseArbeid (Arbeidsforhold arbeidsforhold ) {
170
178
InntektPeriodeType inntektPeriode = arbeidsforhold .inntektsperiode () == null ? InntektPeriodeType .UDEFINERT :
171
179
InntektPeriodeReverse .reverseMap (arbeidsforhold .inntektsperiode ().kode ().name (), LOG );
172
- BigDecimal inntekt = arbeidsforhold .inntekt () != null ? new BigDecimal (arbeidsforhold .inntekt ()) : null ;
180
+ BigDecimal inntekt = arbeidsforhold .inntekt () != null ? new BigDecimal (arbeidsforhold .inntekt ()) : null ;
173
181
return new InfotrygdYtelseArbeid (arbeidsforhold .orgnr ().getOrgnr (),
174
182
inntekt , inntektPeriode , arbeidsforhold .refusjon ());
175
183
}
0 commit comments