final Double ectsCredits =
curriculumModule.getAprovedEctsCredits()
+ curriculumModule.getEnroledEctsCredits(enrolmentContext.getExecutionPeriod())
+ calculateEctsCreditsFromToEnrolCurricularCourses(enrolmentContext, curriculumModule);
if (rule.creditsExceedMaximum(ectsCredits)) {
if (sourceDegreeModuleToEvaluate.isEnroled() && sourceDegreeModuleToEvaluate.isLeaf()) {
return createImpossibleResult(rule, sourceDegreeModuleToEvaluate, ectsCredits);
} else {
return createFalseRuleResult(rule, sourceDegreeModuleToEvaluate, ectsCredits);
}