@@ -21,7 +21,6 @@ internal class BeregnGraderTest {
21
21
private val IKKE_YRKESAKTIV_UTEN_ERSTATNING = Arbeidsforhold (type = Arbeidstype .IKKE_YRKESAKTIV_UTEN_ERSTATNING .kode)
22
22
private val INAKTIV = Arbeidsforhold (type = Arbeidstype .INAKTIV .kode)
23
23
private val DAGPENGER = Arbeidsforhold (type = Arbeidstype .DAGPENGER .kode)
24
- private val KUN_YTELSE = Arbeidsforhold (type = Arbeidstype .KUN_YTELSE .kode)
25
24
private val FRILANS = Arbeidsforhold (type = Arbeidstype .FRILANSER .kode)
26
25
private val PERIODE = LukketPeriode (" 2023-01-01/2023-01-31" )
27
26
private val NYE_REGLER_UTBETALINGSGRAD_DATO = LocalDate .parse(" 2023-06-01" )
@@ -404,8 +403,8 @@ internal class BeregnGraderTest {
404
403
405
404
grader4.assert (
406
405
Årsak.AVKORTET_MOT_INNTEKT ,
407
- Prosent (80 ),
408
- IKKE_YRKESAKTIV to Prosent (80 ).setScale(2 , RoundingMode .HALF_UP ),
406
+ Prosent (92 ),
407
+ IKKE_YRKESAKTIV to Prosent (100 ).setScale(2 , RoundingMode .HALF_UP ),
409
408
ARBEIDSGIVER1 to Prosent (100 ),
410
409
FRILANS to Prosent (0 )
411
410
)
@@ -783,9 +782,9 @@ internal class BeregnGraderTest {
783
782
784
783
grader.assert (
785
784
Årsak.AVKORTET_MOT_INNTEKT ,
786
- Prosent (50 ),
785
+ Prosent (75 ),
787
786
ARBEIDSGIVER1 to Prosent (50 ),
788
- IKKE_YRKESAKTIV to Prosent (50 )
787
+ IKKE_YRKESAKTIV to Prosent (100 )
789
788
)
790
789
}
791
790
@@ -810,8 +809,8 @@ internal class BeregnGraderTest {
810
809
grader.assert (
811
810
Årsak.GRADERT_MOT_TILSYN ,
812
811
Prosent (53 ),
813
- ARBEIDSGIVER1 to Prosent (53 ),
814
- IKKE_YRKESAKTIV to Prosent (53 )
812
+ ARBEIDSGIVER1 to Prosent (40 ),
813
+ IKKE_YRKESAKTIV to Prosent (66 )
815
814
)
816
815
}
817
816
@@ -836,8 +835,8 @@ internal class BeregnGraderTest {
836
835
grader.assert (
837
836
Årsak.GRADERT_MOT_TILSYN ,
838
837
Prosent (53 ),
839
- ARBEIDSGIVER1 to Prosent (53 ),
840
- IKKE_YRKESAKTIV to Prosent (53 )
838
+ ARBEIDSGIVER1 to Prosent (40 ),
839
+ IKKE_YRKESAKTIV to Prosent (66 )
841
840
)
842
841
}
843
842
@@ -862,10 +861,10 @@ internal class BeregnGraderTest {
862
861
863
862
grader.assert (
864
863
Årsak.AVKORTET_MOT_INNTEKT ,
865
- Prosent (63 ),
864
+ Prosent (75 ),
866
865
ARBEIDSGIVER1 to Prosent (50 ),
867
866
ARBEIDSGIVER2 to Prosent (75 ),
868
- IKKE_YRKESAKTIV to Prosent (62.5 )
867
+ IKKE_YRKESAKTIV to Prosent (100 )
869
868
)
870
869
}
871
870
@@ -916,10 +915,10 @@ internal class BeregnGraderTest {
916
915
917
916
grader.assert (
918
917
Årsak.AVKORTET_MOT_INNTEKT ,
919
- Prosent (80 ),
918
+ Prosent (87 ),
920
919
ARBEIDSGIVER1 to Prosent (60 ),
921
920
DAGPENGER to Prosent (100 ),
922
- IKKE_YRKESAKTIV to Prosent (80 )
921
+ IKKE_YRKESAKTIV to Prosent (100 )
923
922
)
924
923
}
925
924
@@ -944,10 +943,10 @@ internal class BeregnGraderTest {
944
943
945
944
grader.assert (
946
945
Årsak.AVKORTET_MOT_INNTEKT ,
947
- Prosent (80 ),
946
+ Prosent (87 ),
948
947
ARBEIDSGIVER1 to Prosent (60 ),
949
948
INAKTIV to Prosent (100 ),
950
- IKKE_YRKESAKTIV to Prosent (80 )
949
+ IKKE_YRKESAKTIV to Prosent (100 )
951
950
)
952
951
}
953
952
@@ -973,11 +972,11 @@ internal class BeregnGraderTest {
973
972
974
973
grader.assert (
975
974
Årsak.AVKORTET_MOT_INNTEKT ,
976
- Prosent (67 ),
975
+ Prosent (75 ),
977
976
ARBEIDSGIVER1 to Prosent (60 ),
978
977
ARBEIDSGIVER2 to Prosent (40 ),
979
978
DAGPENGER to Prosent (100 ),
980
- IKKE_YRKESAKTIV to Prosent (66.67 ).setScale(2 , RoundingMode .HALF_UP )
979
+ IKKE_YRKESAKTIV to Prosent (100 ).setScale(2 , RoundingMode .HALF_UP )
981
980
)
982
981
}
983
982
@@ -1003,10 +1002,10 @@ internal class BeregnGraderTest {
1003
1002
)
1004
1003
1005
1004
grader.assert (
1006
- Årsak.FOR_LAV_TAPT_ARBEIDSTID ,
1007
- NULL_PROSENT ,
1008
- ARBEIDSGIVER1 to NULL_PROSENT ,
1009
- IKKE_YRKESAKTIV to NULL_PROSENT
1005
+ Årsak.AVKORTET_MOT_INNTEKT ,
1006
+ BigDecimal ( 55 ) ,
1007
+ ARBEIDSGIVER1 to BigDecimal ( 10 ) ,
1008
+ IKKE_YRKESAKTIV to BigDecimal ( 100 )
1010
1009
)
1011
1010
}
1012
1011
0 commit comments