Skip to content

Commit

Permalink
CIV-14736 Update condition for CCJ
Browse files Browse the repository at this point in the history
  • Loading branch information
kenneth-hmcts committed Jul 23, 2024
1 parent 9d1fbfe commit 79a8a81
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ public String getScenario(CaseData caseData) {
}
} else if (isClaimantRejectRepaymentPlan(caseData)) {
return SCENARIO_AAA6_CLAIMANT_INTENT_REJECT_REPAYMENT_ORG_LTD_CO_DEFENDANT.getScenario();
} else if (
!featureToggleService.isJudgmentOnlineLive()
&& !caseData.isApplicantLiP()
&& caseData.hasApplicantAcceptedRepaymentPlan()
&& caseData.isCcjRequestJudgmentByAdmission()) {
} else if (isLrvLipPartFullAdmitAndPayByPlan(caseData)) {
return SCENARIO_AAA6_CLAIMANT_INTENT_REQUESTED_CCJ_CLAIMANT_ACCEPTED_DEFENDANT_PLAN_DEFENDANT.getScenario();
}
return null;
Expand Down Expand Up @@ -192,4 +188,11 @@ private boolean isClaimantRejectRepaymentPlan(CaseData caseData) {
private boolean isCarmApplicableForMediation(CaseData caseData) {
return getFeatureToggleService().isCarmEnabledForCase(caseData);
}

private boolean isLrvLipPartFullAdmitAndPayByPlan(CaseData caseData) {
return !featureToggleService.isJudgmentOnlineLive()
&& !caseData.isApplicantLiP()
&& caseData.hasApplicantAcceptedRepaymentPlan()
&& caseData.isCcjRequestJudgmentByAdmission();
}
}

0 comments on commit 79a8a81

Please sign in to comment.