IDEMPIERE-1387 ImportBankStatement - Error during import related to missing TRX in Account (#192)

Implement suggestion from Jan Thielemann
This commit is contained in:
Carlos Ruiz 2020-07-30 17:18:25 +02:00 committed by GitHub
parent 5af5ee2b90
commit e7ebf98117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ public class ImportBankStatement extends SvrProcess
// Get the bank account for the first statement
if (account == null)
{
account = MBankAccount.get (m_ctx, imp.getC_BankAccount_ID());
account = new MBankAccount(m_ctx, imp.getC_BankAccount_ID(), get_TrxName());
statement = null;
msglog = new StringBuilder("New Statement, Account=").append(account.getAccountNo());
if (log.isLoggable(Level.INFO)) log.info(msglog.toString());
@ -391,7 +391,7 @@ public class ImportBankStatement extends SvrProcess
// Create a new Bank Statement for every account
else if (account.getC_BankAccount_ID() != imp.getC_BankAccount_ID())
{
account = MBankAccount.get (m_ctx, imp.getC_BankAccount_ID());
account = new MBankAccount(m_ctx, imp.getC_BankAccount_ID(), get_TrxName());
statement = null;
msglog = new StringBuilder("New Statement, Account=").append(account.getAccountNo());
if (log.isLoggable(Level.INFO)) log.info(msglog.toString());