IDEMPIERE-4240

This commit is contained in:
Ray Lee 2020-04-09 06:08:41 +08:00 committed by Carlos Ruiz
parent 8067cb23ed
commit e7b227200e
1 changed files with 3 additions and 1 deletions

View File

@ -82,6 +82,8 @@ public class MDocTypeCounter extends X_C_DocTypeCounter
return Counter_C_DocType_ID; return Counter_C_DocType_ID;
} // getCounterDocType_ID } // getCounterDocType_ID
/** /**
* Get (first) valid Counter document for document type * Get (first) valid Counter document for document type
* @param ctx context * @param ctx context
@ -97,7 +99,7 @@ public class MDocTypeCounter extends X_C_DocTypeCounter
// Direct Relationship // Direct Relationship
MDocTypeCounter temp = null; MDocTypeCounter temp = null;
String sql = "SELECT * FROM C_DocTypeCounter WHERE C_DocType_ID=?"; String sql = "SELECT * FROM C_DocTypeCounter WHERE IsActive = 'Y' and C_DocType_ID=?";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
try try