-
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.
Hvis mors aktivitet er arbeid og mor er i delvis aktivitet så går vi …
…ut til manuell behandling
- Loading branch information
1 parent
03b8b43
commit 2b1283b
Showing
6 changed files
with
107 additions
and
28 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...setteperiode/betingelser/aktkrav/SjekkOmMorErIArbeidMedStillingprosentUnder75Prosent.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package no.nav.foreldrepenger.regler.uttak.fastsetteperiode.betingelser.aktkrav; | ||
|
||
import no.nav.foreldrepenger.regler.uttak.fastsetteperiode.FastsettePeriodeGrunnlag; | ||
import no.nav.foreldrepenger.regler.uttak.fastsetteperiode.grunnlag.MorsAktivitet; | ||
import no.nav.foreldrepenger.regler.uttak.fastsetteperiode.grunnlag.OppgittPeriode; | ||
import no.nav.fpsak.nare.doc.RuleDocumentation; | ||
import no.nav.fpsak.nare.evaluation.Evaluation; | ||
import no.nav.fpsak.nare.specification.LeafSpecification; | ||
|
||
@RuleDocumentation(SjekkOmMorErIArbeidMedStillingprosentUnder75Prosent.ID) | ||
public class SjekkOmMorErIArbeidMedStillingprosentUnder75Prosent extends LeafSpecification<FastsettePeriodeGrunnlag> { | ||
|
||
public static final String ID = "AKT_ARBEID_1"; | ||
public static final String BESKRIVELSE = "Er mor i arbeid og har en stillingsprosent under 75 prosent"; | ||
|
||
public SjekkOmMorErIArbeidMedStillingprosentUnder75Prosent() { | ||
super(ID); | ||
} | ||
|
||
@Override | ||
public Evaluation evaluate(FastsettePeriodeGrunnlag grunnlag) { | ||
var aktuellPeriode = grunnlag.getAktuellPeriode(); | ||
if (erMorIArbeidOgHarEnStillingsprosentMindreEnn75Prosent(aktuellPeriode)) { | ||
return ja(); | ||
} | ||
return nei(); | ||
} | ||
|
||
private static boolean erMorIArbeidOgHarEnStillingsprosentMindreEnn75Prosent(OppgittPeriode aktuellPeriode) { | ||
return MorsAktivitet.ARBEID.equals(aktuellPeriode.getMorsAktivitet()) && aktuellPeriode.getMorsStillingsprosent() != null; | ||
} | ||
} |
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
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