new CancelledCandidacySituation(this, this.getPerson());
for (PaymentCode paymentCode : getAvailablePaymentCodesSet()) {
AccountingEventPaymentCode accountingEventPaymentCode = (AccountingEventPaymentCode) paymentCode;
if (accountingEventPaymentCode.isNew() && accountingEventPaymentCode.getAccountingEvent() == null) {
accountingEventPaymentCode.cancel();
}
}
return true;
}