Bank statement posting period incorrect. Fixes #272
(transplanted and modified for idempiere from http://adempiere.hg.sourceforge.net/hgweb/adempiere/contribution_adaxa/rev/53b4ceb2ecaa)
This commit is contained in:
parent
e377f62aec
commit
ccf712f7d6
|
@ -103,10 +103,6 @@ public class Doc_BankStatement extends Doc
|
|||
MBankStatementLine line = lines[i];
|
||||
DocLine_Bank docLine = new DocLine_Bank(line, this);
|
||||
|
||||
MPeriod period = MPeriod.get(getCtx(), line.getDateAcct(), line.getAD_Org_ID());
|
||||
if (period != null && period.isOpen(DOCTYPE_BankStatement, line.getDateAcct()))
|
||||
docLine.setC_Period_ID(period.getC_Period_ID());
|
||||
//
|
||||
list.add(docLine);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue