IDEMPIERE-2779 Financial Report can be broken if include source accounts with no transaction
This commit is contained in:
parent
536a21a514
commit
cc18b9f146
|
@ -1429,18 +1429,6 @@ public class FinReport extends SvrProcess
|
|||
sb.append (")");
|
||||
unionWhere.append(sb.toString ());
|
||||
}
|
||||
// Posting Type
|
||||
String PostingType = m_lines[line].getPostingType();
|
||||
if (PostingType != null && PostingType.length() > 0)
|
||||
{
|
||||
if (unionWhere.length() > 0)
|
||||
unionWhere.append(" AND ");
|
||||
unionWhere.append("PostingType='" + PostingType + "'");
|
||||
if (MReportLine.POSTINGTYPE_Budget.equals(PostingType)) {
|
||||
if (m_lines[line].getGL_Budget_ID() > 0)
|
||||
unionWhere.append(" AND GL_Budget_ID=" + m_lines[line].getGL_Budget_ID());
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
|
|
Loading…
Reference in New Issue