Skip to content

Commit

Permalink
Merge pull request #1293 from navikt/allow_different_reference_from_p…
Browse files Browse the repository at this point in the history
…esys

Allow different dvhReferanse for Anke from Pesys, as requested by DVH.
  • Loading branch information
oyvind-wedoe authored Dec 19, 2024
2 parents 6698e1d + 0775514 commit e6c3401
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/kotlin/no/nav/klage/oppgave/service/MottakService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,14 @@ class MottakService(
if (previousHandledKlage != null) {
logger.debug("Fant tidligere behandlet klage i Kabal, med id {}", previousHandledKlage.id)
if (oversendtKlageAnke.dvhReferanse != previousHandledKlage.dvhReferanse) {
val message =
"Tidligere behandlet klage har annen dvhReferanse enn innsendt anke."
logger.warn(message)
throw OversendtKlageNotValidException(message)
if (oversendtKlageAnke.fagsak.fagsystem != Fagsystem.PP01) {
val message =
"Tidligere behandlet klage har annen dvhReferanse enn innsendt anke."
logger.warn(message)
throw OversendtKlageNotValidException(message)
} else {
logger.debug("dvhReferanse ${oversendtKlageAnke.dvhReferanse} matcher ikke med klage. Godtar, fordi det er anke fra Pesys.")
}
}
mottakRepository.save(oversendtKlageAnke.toMottak(previousHandledKlage.id))
} else {
Expand Down

0 comments on commit e6c3401

Please sign in to comment.