Skip to content

Commit

Permalink
Fikse resultatkode SluttberegningBarnebidrag (#371)
Browse files Browse the repository at this point in the history
* Fikse resultatkode SluttberegningBarnebidrag

* Fikse resultatkode SluttberegningBarnebidrag
  • Loading branch information
ugur93 authored Dec 2, 2024
1 parent 5033ea9 commit 737b9f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private val sluttberegningBisyskodeMap =
SluttberegningBarnebidrag::bidragJustertForNettoBarnetilleggBM.name to "102",
SluttberegningBarnebidrag::bidragJustertNedTilEvne.name to "6MB",
SluttberegningBarnebidrag::bidragJustertNedTil25ProsentAvInntekt.name to "7M",
"kostnadsberegnet" to "BB",
"kostnadsberegnet" to "KBB",
)

data class SluttberegningBarnebidrag(
Expand Down Expand Up @@ -81,7 +81,7 @@ data class SluttberegningBarnebidrag(

@get:JsonIgnore
val bisysResultatkode
get() = sluttberegningBisyskodeMap[resultat] ?: "BB"
get() = sluttberegningBisyskodeMap[resultat] ?: "KBB"

@get:JsonIgnore
val resultatVisningsnavn get() = lastVisningsnavnFraFil("sluttberegningBarnebidrag.yaml")[resultat]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SluttberegningBarnebidragTest {

@Test
fun `skal oversette til riktig bisys resultatkode`() {
sluttberegning.bisysResultatkode shouldBe "BB"
sluttberegning.bisysResultatkode shouldBe "KBB"

sluttberegning
.copy(
Expand Down Expand Up @@ -141,7 +141,7 @@ class SluttberegningBarnebidragTest {
bidragJustertNedTilEvne = false,
bidragJustertNedTil25ProsentAvInntekt = false,
bidragJustertForNettoBarnetilleggBM = false,
).bisysResultatkode shouldBe "BB"
).bisysResultatkode shouldBe "KBB"
}

@Test
Expand Down

0 comments on commit 737b9f1

Please sign in to comment.