SDF01 company check fix

This commit is contained in:
ialbert 2023-05-27 11:32:32 +03:00
parent 1e8ae0a47b
commit 2c917e0ddf

View file

@ -31,7 +31,7 @@ public enum Sdf01NewValidationRule implements IValidationRule<ImdgValidationCont
Company company = companyImdg.getSingleObjectBySQL("tradingCode = '" + sdf01.getDeal() + "'");
if (company == null) {
of(ClearingError.CompanyNotFoundB, sdf01.getDeal());
return of(ClearingError.CompanyNotFoundB, sdf01.getDeal());
}
context.storeObject(ValidationStored.Sdf01Company, company);
return empty();