FinishingSessionAction PAYM bugfix

This commit is contained in:
ialbert 2025-07-09 15:07:25 +03:00
parent bfdf2d152b
commit b451394004

View file

@ -182,7 +182,7 @@ public class FinishingSessionAction extends AbstractSessionActionForOkErrorHandl
notAllowed,
executions.size() - (allowed + notAllowed));
}
if (IEnumKey.contains(sessionType, SessionType.CURR, SessionType.TRDT, SessionType.IPOB, SessionType.IPO0, SessionType.IPOT, SessionType.UNIT)) {
if (IEnumKey.contains(sessionType, SessionType.CURR, SessionType.PAYM, SessionType.TRDT, SessionType.IPOB, SessionType.IPO0, SessionType.IPOT, SessionType.UNIT)) {
Collection<? extends ExecutionCommon> executions = findExecutionFondBySessionId(sessionId, sessionType);
Map<Long, ExecutionCurrency> execCurr = new HashMap<>();
Map<Long, ExecutionFond> execFond = new HashMap<>();
@ -244,7 +244,9 @@ public class FinishingSessionAction extends AbstractSessionActionForOkErrorHandl
throw new RuntimeException(msgResolver.resolve(sResult.get()));
}
}
sdf05Sender.sendSdf05(pr);
if (!SessionType.PAYM.equals(sessionType)) {
sdf05Sender.sendSdf05(pr);
}
if (Section.FOND.equals(section) || Section.MULT.equals(section)) {
sdf14Sender.sendSdf14(sessionId);
}
@ -330,7 +332,7 @@ public class FinishingSessionAction extends AbstractSessionActionForOkErrorHandl
return res;
} else {
Imdg<? extends ExecutionCommon> excImdg;
if (sessionType.equals(SessionType.CURR)) {
if (sessionType.equals(SessionType.CURR) || sessionType.equals(SessionType.PAYM)) {
excImdg = executionCurrencyImdg;
} else {
excImdg = executionFondImdg;