Skip to content

Commit

Permalink
Beregning innbetalt beløp
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Dec 9, 2024
1 parent dcd4b59 commit 24e0cfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
package no.nav.bidrag.behandling.dto.v1.beregning

import no.nav.bidrag.domene.ident.Personident
import java.math.BigDecimal
import java.time.LocalDate

data class ResultatRolle(
val ident: Personident?,
val navn: String,
valdselsdato: LocalDate,
val innbetaltBeløp: BigDecimal? = null,
)
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private val LOGGER = KotlinLogging.logger {}

private fun Rolle.tilPersonident() = ident?.let { Personident(it) }

private fun Rolle.mapTilResultatBarn() = ResultatRolle(tilPersonident(), hentNavn(), fødselsdato)
private fun Rolle.mapTilResultatBarn() = ResultatRolle(tilPersonident(), hentNavn(), fødselsdato, innbetaltBeløp)

@Service
class BeregningService(
Expand Down

0 comments on commit 24e0cfd

Please sign in to comment.