parent
b18e047f84
commit
4ac51b04ef
1 changed files with 4 additions and 3 deletions
|
|
@ -91,16 +91,17 @@ public class MoneyBalanceRegisterService extends QueueConsumer implements Initia
|
||||||
String accountType = registry.getAccountType();
|
String accountType = registry.getAccountType();
|
||||||
String account = null;
|
String account = null;
|
||||||
String infoAccount = null;
|
String infoAccount = null;
|
||||||
if (accountType.equalsIgnoreCase("CLRN")) {
|
if ("CLRN".equalsIgnoreCase(accountType)) {
|
||||||
account = registry.getAccount();
|
|
||||||
Account accountValue = accountMap.getSingleObjectByFieldValues(Map.of("companyId", registry.getCompanyId(), "accountType", "INFO"));
|
Account accountValue = accountMap.getSingleObjectByFieldValues(Map.of("companyId", registry.getCompanyId(), "accountType", "INFO"));
|
||||||
|
account = registry.getAccount();
|
||||||
infoAccount = accountValue != null ? accountValue.getAccount() : null;
|
infoAccount = accountValue != null ? accountValue.getAccount() : null;
|
||||||
} else if (accountType.equalsIgnoreCase("INFO")) {
|
} else if ("INFO".equalsIgnoreCase(accountType)) {
|
||||||
Account accountValue = accountMap.getSingleObjectByFieldValues(Map.of("companyId", registry.getCompanyId(), "accountType", "CLRN"));
|
Account accountValue = accountMap.getSingleObjectByFieldValues(Map.of("companyId", registry.getCompanyId(), "accountType", "CLRN"));
|
||||||
account = accountValue != null ? accountValue.getAccount() : null;
|
account = accountValue != null ? accountValue.getAccount() : null;
|
||||||
infoAccount = registry.getAccount();
|
infoAccount = registry.getAccount();
|
||||||
}
|
}
|
||||||
moneyBalanceRegister.setSetHouseName(setHouseName);
|
moneyBalanceRegister.setSetHouseName(setHouseName);
|
||||||
|
moneyBalanceRegister.setCompanyFullName(registry.getFullName());
|
||||||
moneyBalanceRegister.setAccount(account);
|
moneyBalanceRegister.setAccount(account);
|
||||||
moneyBalanceRegister.setInfoAccount(infoAccount);
|
moneyBalanceRegister.setInfoAccount(infoAccount);
|
||||||
moneyBalanceRegister.setRemainderSum(registry.getCloseBalance());
|
moneyBalanceRegister.setRemainderSum(registry.getCloseBalance());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue