Skip to content

Commit

Permalink
Merge pull request #1363 from navikt/svarbrev_to_klager_and_reverse_f…
Browse files Browse the repository at this point in the history
…inish

Send svarbrev to klager if it differs from saken gjelder.
  • Loading branch information
oyvind-wedoe authored Mar 7, 2025
2 parents 149e58f + 94dabb5 commit cf14d7f
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 cf14d7f

Please sign in to comment.