-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fjern overflødige felt fra refusjon #311
Conversation
// TODO gjør denne sjekken ved opprettelse | ||
if (it.fullLønnIArbeidsgiverPerioden?.utbetalerFullLønn == true) { | ||
it.copy( | ||
fullLønnIArbeidsgiverPerioden = FullLonnIArbeidsgiverPerioden( | ||
utbetalerFullLønn = true, | ||
begrunnelse = null, | ||
utbetalt = null | ||
val request = Jackson.fromJson<InnsendingRequest>(call.receiveText()) | ||
.let { | ||
// TODO gjør denne sjekken ved opprettelse | ||
if (it.fullLønnIArbeidsgiverPerioden?.utbetalerFullLønn == true) { | ||
it.copy( | ||
fullLønnIArbeidsgiverPerioden = FullLonnIArbeidsgiverPerioden( | ||
utbetalerFullLønn = true, | ||
begrunnelse = null, | ||
utbetalt = null | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Endret bare indent. Trodde dette skulle vises bedre -.-
@@ -117,6 +126,91 @@ class InnsendingRouteKtTest : ApiTest() { | |||
assertEquals(InnsendingResponse(Mock.forespoerselId).toJsonStr(InnsendingResponse.serializer()), response.bodyAsText()) | |||
} | |||
|
|||
@Test | |||
fun `fjern ugyldige verdier ved utbetaling av full lønn i arbeisdgiverperioden`() = testApi { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Denne tester ikke endringen fra denne commiten, men testen mangla og var lik den andre, så da hev jeg den med.
No description provided.