Skip to content

Commit

Permalink
Send svarbrev to klager if it differs from saken gjelder.
Browse files Browse the repository at this point in the history
Reverse list when handling completion, to avoid holdup due to missing access to KA-rutinen/Infotrygd.
  • Loading branch information
oyvind-wedoe committed Mar 7, 2025
1 parent 149e58f commit 94dabb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2130,6 +2130,13 @@ class DokumentUnderArbeidService(
navn = prosessfullmektig.navn
)
}
} else if (behandling.klager.partId.value != behandling.sakenGjelder.partId.value) {
Svarbrev.Receiver(
id = behandling.klager.partId.value,
handling = Svarbrev.Receiver.HandlingEnum.AUTO,
overriddenAddress = null,
navn = null
)
} else {
Svarbrev.Receiver(
id = behandling.sakenGjelder.partId.value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class KlagebehandlingSchedulerService(
@SchedulerLock(name = "avsluttBehandling")
fun avsluttBehandling() {
logSchedulerMessage(functionName = ::avsluttBehandling.name)
val behandlingIdList: List<Pair<UUID, Type>> = behandlingService.findBehandlingerForAvslutning()
val behandlingIdList: List<Pair<UUID, Type>> = behandlingService.findBehandlingerForAvslutning().reversed()

behandlingIdList.forEach { (id, type) ->
if (type != Type.ANKE_I_TRYGDERETTEN) {
Expand Down

0 comments on commit 94dabb5

Please sign in to comment.