IDEMPIERE-2632 Banks statement document posts inactive records / inactive records also changing balance wrongly

This commit is contained in:
Carlos Ruiz 2015-05-20 09:48:21 -05:00
parent 6bbafff154
commit fd17ccb580
2 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,8 @@ public class CopyFromBankStmt extends SvrProcess
for (MBankStatementLine fromLine : from.getLines(false))
{
if (!fromLine.isActive())
continue;
if (fromLine.getC_Payment_ID() > 0)
{
// check if payment is used on another statement

View File

@ -317,6 +317,8 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
for (int i = 0; i < lines.length; i++)
{
MBankStatementLine line = lines[i];
if (!line.isActive())
continue;
total = total.add(line.getStmtAmt());
if (line.getDateAcct().before(minDate))
minDate = line.getDateAcct();