checkPreconditionsToProcess(event);
return super.internalProcess(user, entryDTOs, event, fromAccount, toAccount, transactionDetail);
}
private void checkPreconditionsToProcess(Event event) {
final DfaRegistrationEvent dfaRegistrationEvent = (DfaRegistrationEvent) event;
if (!dfaRegistrationEvent.hasRegistrationPeriodInDegreeCurricularPlan()) {
throw new DomainException(
"error.accounting.postingRules.dfa.DfaRegistrationPR.cannot.process.without.registration.period.defined");
}
}