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:
parent
6ed2034e6a
commit
8629dfb7b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue