Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
ialbert 2023-05-27 19:29:08 +03:00
commit d18504377f
2 changed files with 2 additions and 5 deletions

View file

@ -53,7 +53,7 @@ public class BankAccountValidationConfig {
Company.class,
AccountError.RequiredFieldEmpty,
AccountError.CompanyNotFound,
company -> WorkflowStatus.Active.equalsByKey(company.getWorkflowStatus()) ? null : AccountError.CompanyNotActive),
false),
FieldRequiredRule.instance("account",
BankAccountNewRequest::getAccount,
AccountError.RequiredFieldEmpty,
@ -83,9 +83,6 @@ public class BankAccountValidationConfig {
AccountError.RequiredFieldEmpty),
FieldRequiredRule.instance("bankName",
BankAccountNewRequest::getBankName,
AccountError.RequiredFieldEmpty),
FieldRequiredRule.instance("destination",
BankAccountNewRequest::getDestination,
AccountError.RequiredFieldEmpty)
);
};

View file

@ -38,7 +38,7 @@ public class HaveValidCodeByDictionary<R> implements IValidationRule<ImdgValidat
if (required)
return of(SecuritiesError.RequiredFieldIsEmpty, errArg);
else
return null;
return empty();
}
Imdg<SpcexObjectBase> imdgDictionary = context.obtainMap(mapName, SpcexObjectBase.class);
SpcexObjectBase dictionary = imdgDictionary.getSingleObjectByFieldValues(Map.of(