Skip to content

Commit

Permalink
Fikser siste kjøring har feila ble sjekket feil hvis vi kun har feila (
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindsh authored Nov 20, 2024
1 parent 2f2e4b7 commit a3de970
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class SakLesDao(
WHERE k.sak_id=s.id
AND k.kjoering='$kjoering'
AND k.status = '${KjoeringStatus.FEILA.name}'
AND k.tidspunkt > (SELECT MAX(o.tidspunkt) FROM omregningskjoering o WHERE o.sak_id=k.sak_id AND o.kjoering=k.kjoering AND o.status != '${KjoeringStatus.FEILA.name}')
AND k.tidspunkt >= (SELECT MAX(o.tidspunkt) FROM omregningskjoering o WHERE o.sak_id=k.sak_id AND o.kjoering=k.kjoering)
)
)
AND EXISTS(SELECT 1 FROM behandling b WHERE b.sak_id= s.id)
Expand Down

0 comments on commit a3de970

Please sign in to comment.