IDEMPIERE-2632 Banks statement document posts inactive records / inactive records also changing balance wrongly
This commit is contained in:
parent
6bbafff154
commit
fd17ccb580
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue