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 account = null;
|
||||
String infoAccount = null;
|
||||
if (accountType.equalsIgnoreCase("CLRN")) {
|
||||
account = registry.getAccount();
|
||||
if ("CLRN".equalsIgnoreCase(accountType)) {
|
||||
Account accountValue = accountMap.getSingleObjectByFieldValues(Map.of("companyId", registry.getCompanyId(), "accountType", "INFO"));
|
||||
account = registry.getAccount();
|
||||
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 != null ? accountValue.getAccount() : null;
|
||||
infoAccount = registry.getAccount();
|
||||
}
|
||||
moneyBalanceRegister.setSetHouseName(setHouseName);
|
||||
moneyBalanceRegister.setCompanyFullName(registry.getFullName());
|
||||
moneyBalanceRegister.setAccount(account);
|
||||
moneyBalanceRegister.setInfoAccount(infoAccount);
|
||||
moneyBalanceRegister.setRemainderSum(registry.getCloseBalance());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue