Skip to content

Commit

Permalink
Beregning særbidrag endre andel prosent til faktor (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 authored Aug 21, 2024
1 parent 0713131 commit 2c287db
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package no.nav.bidrag.transport.behandling.felles.grunnlag

import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonIgnore
import no.nav.bidrag.domene.enums.beregning.Resultatkode
import no.nav.bidrag.domene.enums.person.AldersgruppeForskudd
import no.nav.bidrag.domene.tid.ÅrMånedsperiode
Expand Down Expand Up @@ -52,10 +54,15 @@ data class DelberegningVoksneIHustand(

data class DelberegningBidragspliktigesAndelSærbidrag(
override val periode: ÅrMånedsperiode,
val andelProsent: BigDecimal,
@JsonAlias("andelFaktor", "andelProsent")
val andelFaktor: BigDecimal,
val andelBeløp: BigDecimal,
val barnetErSelvforsørget: Boolean,
) : Delberegning
) : Delberegning {
@get:JsonIgnore
val andelProsent: BigDecimal
get() = if (andelFaktor < BigDecimal.ONE) andelFaktor.multiply(BigDecimal(100)) else andelFaktor
}

data class DelberegningUtgift(
override val periode: ÅrMånedsperiode,
Expand Down

0 comments on commit 2c287db

Please sign in to comment.