From 9198b86ec111b68926ef21a7cc18a3202cfc7a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Golberg?= Date: Wed, 30 Oct 2024 15:43:48 +0100 Subject: [PATCH] Rette bug i setting av status avkortet --- .../src/main/kotlin/avkorting/AvkortingService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/etterlatte-beregning/src/main/kotlin/avkorting/AvkortingService.kt b/apps/etterlatte-beregning/src/main/kotlin/avkorting/AvkortingService.kt index a6913dea0ed..1555c8bab25 100644 --- a/apps/etterlatte-beregning/src/main/kotlin/avkorting/AvkortingService.kt +++ b/apps/etterlatte-beregning/src/main/kotlin/avkorting/AvkortingService.kt @@ -270,7 +270,7 @@ class AvkortingService( ) { val opphoerSammeAar = behandling.opphoerFraOgMed?.let { it.year == behandling.virkningstidspunkt().dato.year } ?: false - if (!opphoerSammeAar && lagretAvkorting.aarsoppgjoer.size == 2) { + if (opphoerSammeAar || lagretAvkorting.aarsoppgjoer.size == 2) { behandlingKlient.avkort(behandling.id, brukerTokenInfo, true) } } else {