diff --git a/org.adempiere.ui.swing/src/org/compiere/acct/AcctViewer.java b/org.adempiere.ui.swing/src/org/compiere/acct/AcctViewer.java index 40f7a8ff77..ed1250e18a 100644 --- a/org.adempiere.ui.swing/src/org/compiere/acct/AcctViewer.java +++ b/org.adempiere.ui.swing/src/org/compiere/acct/AcctViewer.java @@ -716,6 +716,10 @@ public class AcctViewer extends CFrame if (ase != null) whereClause += " AND C_Element_ID=" + ase.getC_Element_ID(); } + else if (keyColumn.equals("AD_OrgTrx_ID")) + { + lookupColumn = "AD_Org_ID"; + } else if (keyColumn.equals("M_Product_ID")) { whereClause = ""; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java index 34685db17d..5101a97834 100755 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java @@ -1147,6 +1147,10 @@ public class WAcctViewer extends Window implements EventListener if (ase != null) whereClause += " AND C_Element_ID=" + ase.getC_Element_ID(); } + else if (keyColumn.equals("AD_OrgTrx_ID")) + { + lookupColumn = "AD_Org_ID"; + } else if (selDocument.isChecked()) whereClause = "";