From 94ddd650a0058e17d09ef2573c35ca6898daa64a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 31 Mar 2017 16:31:37 +0200 Subject: [PATCH] IDEMPIERE-3326 Issue with Import GL Journal - OrgTrxValue mapped Incorrectly / integrate patch suggested by Chuck Boecking --- .../src/org/compiere/process/ImportGLJournal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java b/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java index ed6523d9ba..e1ab1d4ef8 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java @@ -514,7 +514,7 @@ public class ImportGLJournal extends SvrProcess // Set TrxOrg sql = new StringBuilder ("UPDATE I_GLJournal i ") .append("SET AD_OrgTrx_ID=(SELECT o.AD_Org_ID FROM AD_Org o") - .append(" WHERE o.Value=i.OrgValue AND o.IsSummary='N' AND i.AD_Client_ID=o.AD_Client_ID) ") + .append(" WHERE o.Value=i.OrgTrxValue AND o.IsSummary='N' AND i.AD_Client_ID=o.AD_Client_ID) ") .append("WHERE AD_OrgTrx_ID IS NULL AND OrgTrxValue IS NOT NULL") .append(" AND (C_ValidCombination_ID IS NULL OR C_ValidCombination_ID=0) AND I_IsImported<>'Y'").append (clientCheck); no = DB.executeUpdate(sql.toString(), get_TrxName());