report-service: fix predicate

This commit is contained in:
akulikov 2024-07-01 12:24:06 +03:00
parent 1145fd17f7
commit ecb6382607

View file

@ -115,10 +115,12 @@ public class KSRepCashRegistersReportBuilder extends CSVReportBuilder<EmptyParam
AccountType accountType = IEnumKey.getEnumByKey(AccountType.class, registry.getAccountType());
if (accountType == AccountType.Clrn) {
account = registry.getAccount();
} else if (accountType == AccountType.Info) {
Account accountFromIMDG = accountImdg.getFirstObjectByFieldValues(Map.of(
"companyId", 1L,
"accountType", AccountType.Anlt.getKey()
"companyId", 1L,
"accountType", AccountType.Anlt.getKey(),
"currency", registry.getSecuritySymbol()
));
if (accountFromIMDG != null) account = accountFromIMDG.getAccount();
}