IDEMPIERE-355 Fact Acct from GL Journal uses category from doctype instead of journal

This commit is contained in:
Carlos Ruiz 2012-08-01 15:03:32 -05:00
parent 7f8ab75983
commit a3e4c6cf08
1 changed files with 7 additions and 0 deletions

View File

@ -1581,6 +1581,13 @@ public abstract class Doc
*/
public int getGL_Category_ID()
{
int index = p_po.get_ColumnIndex("GL_Category_ID");
if (index != -1)
{
Integer ii = (Integer)p_po.get_Value(index);
if (ii != null)
return ii.intValue();
}
return m_GL_Category_ID;
} // getGL_Category_ID