From b8d7f6042719f1537cc10519b2a1778d3d2d710a Mon Sep 17 00:00:00 2001 From: phib Date: Tue, 9 Dec 2008 11:12:24 +0000 Subject: [PATCH] Fix error in previous commit FR [ 2391399 ] Create dunning run should allow filtering by org Thanks Teo for catching. --- base/src/org/compiere/process/DunningRunCreate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/process/DunningRunCreate.java b/base/src/org/compiere/process/DunningRunCreate.java index 781f9e981d..53f19c804f 100644 --- a/base/src/org/compiere/process/DunningRunCreate.java +++ b/base/src/org/compiere/process/DunningRunCreate.java @@ -332,7 +332,7 @@ public class DunningRunCreate extends SvrProcess if (p_OnlySOTrx) sql += " AND IsReceipt='Y'"; if ( p_AD_Org_ID != 0 ) - sql += " AND i.AD_Org_ID=" + p_AD_Org_ID; + sql += " AND p.AD_Org_ID=" + p_AD_Org_ID; int count = 0; PreparedStatement pstmt = null;