ImportBankStatement - Error during import related to missing TRX in Account

Description

I experienced some strange error during the import of bank statements.
The process runs just fine till it comes to the point where the SvrProcess commits the transaction. It caused a PSQL error telling me that some ids does not exist.
I took a look at the code and noticed that MBankAccount.get(ctx,id) can create a new MBankAccount with trx null.

Once i loaded the MBankAccount via new MBankAccount(ctx,id,trx), the error was gone. I attached my fix but i guess it could also be done by extending MBankAccount.get(ctx,id) with the trx name.

Environment

None

Assignee

Jan Thielemann

Reporter

Jan Thielemann

Labels

Tested By

None

Components

Fix versions

Priority

Major
Configure