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