Fix Bug 2953239 Inactive payment document type used

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2953239
This commit is contained in:
phib 2010-02-17 02:03:14 +00:00
parent 6ed2034e6a
commit 8629dfb7b5
1 changed files with 1 additions and 1 deletions

View File

@ -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