IDEMPIERE-4240
This commit is contained in:
parent
8067cb23ed
commit
e7b227200e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue