IDEMPIERE-1387 ImportBankStatement - Error during import related to missing TRX in Account (#192)
Implement suggestion from Jan Thielemann
This commit is contained in:
parent
5af5ee2b90
commit
e7ebf98117
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue