Skip to content

Commit

Permalink
BD-1764: Oppdatere grensensitt mot bidrag-beregn-forskudd-rest
Browse files Browse the repository at this point in the history
  • Loading branch information
s148719 committed Nov 9, 2023
1 parent bc31fd5 commit d5e0413
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

.mvn/wrapper/**
mvnw
mvnw.cmd

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.9"
services:
database:
image: postgres:15.4-alpine
image: postgres:latest
ports:
- "5445:5432"
environment:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<java.version>21</java.version>
<kotlin.version>1.9.20</kotlin.version>
<bidrag-commons.version>20231103132440_edabbf8</bidrag-commons.version>
<bidrag-transport.version>20231106083046_e69b4f4</bidrag-transport.version>
<bidrag-transport.version>20231108150753_dc8a5b7</bidrag-transport.version>
<logback-encoder.version>7.4</logback-encoder.version>
<token-support.version>3.1.7</token-support.version>
<springdoc.version>2.2.0</springdoc.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ForskuddBeregning {
private fun prepareSoknadsBarn(soknadBarn: Rolle, fDato: String): List<Grunnlag> =
listOf(
Grunnlag(
navn = "Mottatt_SoknadsbarnInfo_SB" + soknadBarn.id,
referanse = "Mottatt_SoknadsbarnInfo_SB" + soknadBarn.id,
type = Grunnlagstype.SOKNADSBARN_INFO,
innhold = POJONode(
SoknadsBarnNode(
Expand Down Expand Up @@ -60,7 +60,7 @@ class ForskuddBeregning {
.filter { soknadsBarnIdent == it.ident }
.map {
Grunnlag(
navn = "Mottatt_Bostatus_" + it.datoFom.toCompactString(),
referanse = "Mottatt_Bostatus_" + it.datoFom.toCompactString(),
type = Grunnlagstype.BOSTATUS,
innhold = POJONode(
BostatusNode(
Expand All @@ -78,7 +78,7 @@ class ForskuddBeregning {
splitPeriods(behandlingBeregningModel.husstandsBarnPerioder)
.map {
Grunnlag(
navn = "Mottatt_BarnIHusstand_" + it.datoFom.replace("-", ""),
referanse = "Mottatt_BarnIHusstand_" + it.datoFom.replace("-", ""),
type = Grunnlagstype.BARN_I_HUSSTAND,
innhold = POJONode(it),
)
Expand All @@ -92,7 +92,7 @@ class ForskuddBeregning {
inntekter
.map {
Grunnlag(
navn = "Mottatt_Inntekt_${it.inntektType}_${it.rolle}_${it.datoFom.toCompactString()}",
referanse = "Mottatt_Inntekt_${it.inntektType}_${it.rolle}_${it.datoFom.toCompactString()}",
type = Grunnlagstype.INNTEKT,
innhold = POJONode(
InntektNode(
Expand All @@ -107,7 +107,7 @@ class ForskuddBeregning {
} + barnetillegg
.map {
Grunnlag(
navn = "Mottatt_Inntekt_TG" + it.datoFom.toCompactString(),
referanse = "Mottatt_Inntekt_TG" + it.datoFom.toCompactString(),
type = Grunnlagstype.INNTEKT,
innhold = POJONode(
InntektNode(
Expand All @@ -122,7 +122,7 @@ class ForskuddBeregning {
} + utvidetbarnetrygd
.map {
Grunnlag(
navn = "Mottatt_Inntekt_UB" + it.datoFom.toCompactString(),
referanse = "Mottatt_Inntekt_UB" + it.datoFom.toCompactString(),
type = Grunnlagstype.INNTEKT,
innhold = POJONode(
InntektNode(
Expand All @@ -147,7 +147,7 @@ class ForskuddBeregning {
private fun prepareSivilstand(sivilstand: List<SivilstandModel>): List<Grunnlag> =
sivilstand.map {
Grunnlag(
navn = "Mottatt_Sivilstand_" + it.datoFom.toCompactString(),
referanse = "Mottatt_Sivilstand_" + it.datoFom.toCompactString(),
type = Grunnlagstype.SIVILSTAND,
innhold = POJONode(
SivilstandNode(
Expand Down

0 comments on commit d5e0413

Please sign in to comment.