.getDescriptionForEntryType(getEntryType()), amountToPay));
}
@Override
protected Money doCalculationForAmountToPay(final Event event, final DateTime when, final boolean applyDiscount) {
DegreeCandidacyForGraduatedPerson individualCandidacy =
((DegreeCandidacyForGraduatedPersonEvent) event).getIndividualCandidacy();
final PrecedentDegreeInformation information = individualCandidacy.getRefactoredPrecedentDegreeInformation();
if (individualCandidacy.getUtlStudent() != null) {
return individualCandidacy.getUtlStudent() ? getAmountForInstitutionStudent() : getAmountForExternalStudent();
} else {
if (information.isCandidacyInternal() || hasAnyValidRegistration((DegreeCandidacyForGraduatedPersonEvent) event)
|| belongsToInstitutionGroup(information.getInstitution())) {
return getAmountForInstitutionStudent();
} else {