This commit is contained in:
etreschenkov 2023-05-24 16:54:26 +03:00
parent d6c951f638
commit dea2954ec3

View file

@ -33,7 +33,7 @@ public enum Sdf57ValidationRule implements IValidationRule<ImdgValidationContext
} }
if (companyDebFound.isEmpty() && companyCredFound.isEmpty()) { 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())); sdf57.getDeal_deb(), sdf57.getDeal_cred()));
} }
return empty(); return empty();
@ -56,7 +56,7 @@ public enum Sdf57ValidationRule implements IValidationRule<ImdgValidationContext
accountCredFound.ifPresent(accountCred -> context.storeObject(ValidationStored.Sdf57AccountCred, accountCred)); accountCredFound.ifPresent(accountCred -> context.storeObject(ValidationStored.Sdf57AccountCred, accountCred));
} }
if (accountDebFound.isEmpty() && accountCredFound.isEmpty()) { 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())); sdf57.getC_acc_deb(), sdf57.getC_acc_cred()));
} }
return empty(); return empty();