Skip to content

Commit

Permalink
Notat barnetillegg måndesbeløp (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 authored Dec 11, 2024
1 parent cd3db3c commit 29d33d1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,15 @@ data class NotatInntektDto(
val historisk: Boolean = false,
val inntektsposter: List<NotatInntektspostDto> = emptyList(),
) {
@get:Schema(description = "Avrundet månedsbeløp for barnetillegg")
val månedsbeløp: BigDecimal?
get() =
if (Inntektsrapportering.BARNETILLEGG == type) {
beløp.divide(BigDecimal(12), 0, RoundingMode.HALF_UP)
} else {
null
}

val visningsnavn
get() =
type.visningsnavnMedÅrstall(
Expand Down

0 comments on commit 29d33d1

Please sign in to comment.