writeOffSuccessful = false;
someErrorsPanel = true;
errorMessageVisible = true;
} else {
for (Policy policy : policies) {
final WriteOffReason reason = WriteOffReason.valueOf(policy.getWriteOffReason());
policyService.writeOffPolicies(policy.getSelectedPolicySerie(), policy.getFrom(), policy.getTo(), reason);
}
writeOffSuccessful = true;
someErrorsPanel = false;
errorMessageVisible = false;