From 2959a43ad97d29652580d24d49be3d486a64cd13 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 4 Aug 2011 21:10:48 -0500 Subject: [PATCH] fixes IDEMPIERE-51 Org Trx on Account Info http://jira.idempiere.com/browse/IDEMPIERE-51 --- org.adempiere.ui.swing/src/org/compiere/acct/AcctViewer.java | 4 ++++ .../WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java | 4 ++++ 2 files changed, 8 insertions(+) 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 = "";