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;
} // getCounterDocType_ID
/**
* Get (first) valid Counter document for document type
* @param ctx context
@ -97,7 +99,7 @@ public class MDocTypeCounter extends X_C_DocTypeCounter
// Direct Relationship
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;
ResultSet rs = null;
try