report-service: fix predicate
This commit is contained in:
parent
1145fd17f7
commit
ecb6382607
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue