-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avtaler kunne overskride 5G for et år
På grunn av en feil i koden så kunne avtaler gå over 5G for et gitt år. Vi oppretter en test som illustrerer problemet, men kort forklart: hvis en refusjon opprettes først året ETTER det året den egentlig gjelder for (feks desember-refusjon opprettes i januar), så ble ikke den totale summen for året kalkulert riktig. Algoritmen ville i stedet lete etter refusjoner fra samme år som opprettet-tidspunktet (nyåret) i stedet for perioden refusjonen gjaldt for. I tillegg til denne bugfiksen har vi lagt til en test som også viser at refusjoner som gjelder for perioden etter grunnbeløp oppdateres vil gi en liten ekstra utbetaling (tilsvarende grunnbeløpsøkningen x 5) Co-authored-by: Sindre Dahl Løken <[email protected]> Co-authored-by: MagnusRom <[email protected]>
- Loading branch information
1 parent
53f1f25
commit 3c16009
Showing
5 changed files
with
250 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.