IDEMPIERE-1636 ImportBankStatement process uses wrong order in sql

This commit is contained in:
Thomas Bayen 2013-12-17 10:48:52 -05:00
parent 0e6d317e2b
commit 9c9a42c4c6
1 changed files with 3 additions and 3 deletions

View File

@ -364,7 +364,7 @@ public class ImportBankStatement extends SvrProcess
//Import Bank Statement
sql = new StringBuilder("SELECT * FROM I_BankStatement")
.append(" WHERE I_IsImported='N'")
.append(" ORDER BY C_BankAccount_ID, Name, EftStatementDate, EftStatementReference");
.append(" ORDER BY C_BankAccount_ID, Name, StatementDate, ReferenceNo");
MBankStatement statement = null;
MBankAccount account = null;
@ -448,7 +448,7 @@ public class ImportBankStatement extends SvrProcess
statement.setDescription(imp.getDescription());
statement.setEftStatementReference(imp.getEftStatementReference());
statement.setEftStatementDate(imp.getEftStatementDate());
if (statement.save())
if (statement.save(get_TrxName()))
{
noInsert++;
}
@ -496,7 +496,7 @@ public class ImportBankStatement extends SvrProcess
line.setEftAmt(imp.getEftAmt());
// Save statement line
if (line.save())
if (line.save(get_TrxName()))
{
imp.setC_BankStatement_ID(statement.getC_BankStatement_ID());
imp.setC_BankStatementLine_ID(line.getC_BankStatementLine_ID());