From 8629dfb7b5b8135d4b51b794621ec1fdd0f53d09 Mon Sep 17 00:00:00 2001 From: phib Date: Wed, 17 Feb 2010 02:03:14 +0000 Subject: [PATCH] Fix Bug 2953239 Inactive payment document type used Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2953239 --- base/src/org/compiere/model/MPayment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MPayment.java b/base/src/org/compiere/model/MPayment.java index ca5779d8d5..0270513037 100644 --- a/base/src/org/compiere/model/MPayment.java +++ b/base/src/org/compiere/model/MPayment.java @@ -1281,7 +1281,7 @@ public final class MPayment extends X_C_Payment public void setC_DocType_ID (boolean isReceipt) { setIsReceipt(isReceipt); - String sql = "SELECT C_DocType_ID FROM C_DocType WHERE AD_Client_ID=? AND DocBaseType=? ORDER BY IsDefault DESC"; + String sql = "SELECT C_DocType_ID FROM C_DocType WHERE IsActive='Y' AND AD_Client_ID=? AND DocBaseType=? ORDER BY IsDefault DESC"; PreparedStatement pstmt = null; ResultSet rs = null; try