IDEMPIERE-95 Set UserElement as new AcctDimension not apply to AcctViewer

http://jira.idempiere.com/browse/IDEMPIERE-95
This commit is contained in:
kittiu 2011-11-10 15:43:06 -05:00
parent b6ad91115a
commit 8bc6b07588
1 changed files with 13 additions and 0 deletions

View File

@ -42,6 +42,7 @@ import org.compiere.apps.search.Info;
import org.compiere.grid.ed.VDate;
import org.compiere.model.MAcctSchema;
import org.compiere.model.MAcctSchemaElement;
import org.compiere.model.MColumn;
import org.compiere.model.X_C_AcctSchema_Element;
import org.compiere.report.core.RModel;
import org.compiere.report.core.RModelExcelExporter;
@ -720,6 +721,18 @@ public class AcctViewer extends CFrame
{
lookupColumn = "AD_Org_ID";
}
else if (keyColumn.equals("UserElement1_ID")) // KTU
{
MAcctSchemaElement ase = m_data.ASchema.getAcctSchemaElement(X_C_AcctSchema_Element.ELEMENTTYPE_UserElement1);
lookupColumn = MColumn.getColumnName(Env.getCtx(), ase.getAD_Column_ID());
whereClause = "";
}
else if (keyColumn.equals("UserElement2_ID")) // KTU
{
MAcctSchemaElement ase = m_data.ASchema.getAcctSchemaElement(X_C_AcctSchema_Element.ELEMENTTYPE_UserElement2);
lookupColumn = MColumn.getColumnName(Env.getCtx(), ase.getAD_Column_ID());
whereClause = "";
}
else if (keyColumn.equals("M_Product_ID"))
{
whereClause = "";