Skip to content

Commit

Permalink
Fikser problemet med begrunnelsestekster som ikke ble vist for eøs-bo…
Browse files Browse the repository at this point in the history
…rger i nasjonal sak (#4253)

### 💰 Hva skal gjøres, og hvorfor?

[Favro](https://favro.com/organization/98c34fb974ce445eac854de0/1844bbac3b6605eacc8f5543?card=NAV-17191)

Sanity-begrunnelser huket av som gjeldende for mer enn et vilkår ble
ikke vist med mindre alle de aktuelle vilkårene var listet som utløsende
for perioden.

Endrer det til at begrunnelsene tas med videre så lenge ett av de
aktuelle vilkårene er blant de utløsende for perioden.



![image](https://github.com/navikt/familie-ba-sak/assets/47184872/cb46f397-a697-4398-8df2-94ab19e0d292)
  • Loading branch information
tnarland authored Dec 18, 2023
1 parent c36db22 commit 4082b7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun ISanityBegrunnelse.erLikVilkårOgUtdypendeVilkårIPeriode(
vilkårResultaterForPerson: Collection<VilkårResultatForVedtaksperiode>,
): Boolean {
if (this.vilkår.isEmpty()) return false
return this.vilkår.all { vilkårISanityBegrunnelse ->
return this.vilkår.any { vilkårISanityBegrunnelse ->
val vilkårResultat = vilkårResultaterForPerson.find { it.vilkårType == vilkårISanityBegrunnelse }

vilkårResultat != null && this.matcherMedUtdypendeVilkår(vilkårResultat)
Expand Down

0 comments on commit 4082b7a

Please sign in to comment.