Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endre SimuleringStub til å oppføre seg som det faktiske simuleringssystemet #217

Merged
merged 2 commits into from
Feb 19, 2021

Conversation

ingara
Copy link
Contributor

@ingara ingara commented Feb 19, 2021

Når vi får perioder med nullutbetaling vil de relle simuleringene ikke inneholde disse periodene.
SimuleringStub vil nå også gjøre dette, i stedet for å legge til perioder med nullutbetaling.

When we have periods with no utbetaling the real simulering will just
not contain these periods. SimuleringStub now mimics this instead of
adding periods with beløp 0.
@ingara ingara requested a review from a team February 19, 2021 07:38
detaljer = listOf(
createYtelse(it.getFraOgMed(), it.getTilOgMed(), utbetalingslinje.beløp),
createForskuddsskatt(it.getFraOgMed(), it.getTilOgMed(), utbetalingslinje.beløp)
Periode.create(utbetalingslinje.fraOgMed, utbetalingslinje.tilOgMed).tilMånedsperioder().filterMap {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeg skjønner fremdeles ikke hvordan filterMap er annerledes enn mapNotNull 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeg var ikke klar over mapNotNull :p Endrer til å bruke den, og sletter filterMap (siden det er noe vi har laget).

createYtelse(it.getFraOgMed(), it.getTilOgMed(), utbetalingslinje.beløp),
createForskuddsskatt(it.getFraOgMed(), it.getTilOgMed(), utbetalingslinje.beløp)
Periode.create(utbetalingslinje.fraOgMed, utbetalingslinje.tilOgMed).tilMånedsperioder().filterMap {
if (utbetalingslinje.beløp > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeg tror jeg trenger litt påfyll på når dette gjelder annet enn ved stopputbetalinger?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hva mener du?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fikk en gjennomgang muntlig, så du skal få slippe og skrive 20 setninger her ;)

@ingara ingara merged commit d4d5066 into master Feb 19, 2021
@ingara ingara deleted the simuleringstub-nullutbetalingsperioder branch February 19, 2021 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants