http://jira.mfd.msk:8088/browse/CLS-290 fix validators
This commit is contained in:
parent
d6c951f638
commit
dea2954ec3
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ public enum Sdf57ValidationRule implements IValidationRule<ImdgValidationContext
|
|||
}
|
||||
|
||||
if (companyDebFound.isEmpty() && companyCredFound.isEmpty()) {
|
||||
return of(ClearingError.CompanyNotFound, String.format("dealDeb = '%s'/ deal_cred = '%s'",
|
||||
return of(ClearingError.CompanyNotFound, String.format("dealDeb = '%s'/ dealCred = '%s'",
|
||||
sdf57.getDeal_deb(), sdf57.getDeal_cred()));
|
||||
}
|
||||
return empty();
|
||||
|
|
@ -56,7 +56,7 @@ public enum Sdf57ValidationRule implements IValidationRule<ImdgValidationContext
|
|||
accountCredFound.ifPresent(accountCred -> context.storeObject(ValidationStored.Sdf57AccountCred, accountCred));
|
||||
}
|
||||
if (accountDebFound.isEmpty() && accountCredFound.isEmpty()) {
|
||||
return of(ClearingError.AccountNotPresent, String.format("accDeb = '%s'/ accDred = '%s'",
|
||||
return of(ClearingError.AccountNotPresent, String.format("accDeb = '%s'/ accCred = '%s'",
|
||||
sdf57.getC_acc_deb(), sdf57.getC_acc_cred()));
|
||||
}
|
||||
return empty();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue