изменения по финальной МКР сессии:
1. шаг 5 поменял статус регистров MNG -> FAIL 1. шаг 7 добавлено условие на valueDate<settlementDate при отсеивании по DM*X
This commit is contained in:
parent
19184c3a4a
commit
f90365a191
2 changed files with 7 additions and 1 deletions
|
|
@ -150,6 +150,12 @@ public class FormingPaymentInstructionReturnMkr implements ISessionStage {
|
|||
.stream()
|
||||
.filter(registry -> RegistryDesignation.L.equalsByKey(registry.getRegistryDesignation()))
|
||||
.filter(obligation -> {
|
||||
//если valueDate < settlement date
|
||||
if (!(obligation.getValueDate() != null
|
||||
&& obligation.getSettlementDate() != null
|
||||
&& obligation.getValueDate().isBefore(obligation.getSettlementDate()))) {
|
||||
return true;
|
||||
}
|
||||
Optional<Registry> dmx = searchDmx(obligation);
|
||||
if (dmx.isPresent()) {
|
||||
log.debug("LM*T#id={}, DM*X#id={} found, no action needed for group {}, skipping liability",
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ public class InspectionObligationsDepositReturn implements ISessionStage {
|
|||
continue;
|
||||
}
|
||||
log.info("OM*T.id={} -> no DM*X/DM*T(INFO/CLRN) registry found. setting MNG status to group", omtRgs.getId());
|
||||
group.forEach(rgs -> updateStatus(rgs, RegistryStatus.MNG));
|
||||
group.forEach(rgs -> updateStatus(rgs, registryStatusForDmxCheckFailed()));
|
||||
}
|
||||
return new StageResult<>(null, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue