Package org.compiere.acct
Class DocManager
java.lang.Object
org.compiere.acct.DocManager
This class contains methods to manage the posting of financial document. Most of the code is adapted from the legacy code in Doc.java
- Author:
- Jorg Janke, hengsin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Doc
getDocument
(MAcctSchema as, int AD_Table_ID, int Record_ID, String trxName) Create Posting documentstatic Doc
getDocument
(MAcctSchema as, int AD_Table_ID, ResultSet rs, String trxName) Create Posting documentstatic int[]
Array of table ids with Posted columnstatic String[]
Array of table names with Posted columnstatic String
postDocument
(MAcctSchema[] ass, int AD_Table_ID, int Record_ID, boolean force, boolean repost, String trxName) Post Documentstatic String
postDocument
(MAcctSchema[] ass, int AD_Table_ID, ResultSet rs, boolean force, boolean repost, String trxName) Post Document
-
Field Details
-
IDOC_FACTORY_CACHE_TABLE_NAME
- See Also:
-
-
Constructor Details
-
DocManager
public DocManager()
-
-
Method Details
-
getDocumentsTableID
public static int[] getDocumentsTableID()Array of table ids with Posted column -
getDocumentsTableName
Array of table names with Posted column -
getDocument
Create Posting document- Parameters:
as
- accounting schemaAD_Table_ID
- Table ID of DocumentsRecord_ID
- record ID to loadtrxName
- transaction name- Returns:
- Document or null
-
getDocument
Create Posting document- Parameters:
as
- accounting schemaAD_Table_ID
- Table ID of Documentsrs
- ResultSettrxName
- transaction name- Returns:
- Document or null
- Throws:
AdempiereUserError
-
postDocument
public static String postDocument(MAcctSchema[] ass, int AD_Table_ID, int Record_ID, boolean force, boolean repost, String trxName) Post Document- Parameters:
ass
- accounting schemaAD_Table_ID
- Transaction tableRecord_ID
- Record ID of this documentforce
- force postingrepost
- Repost documenttrxName
- transaction- Returns:
- null if the document was posted or error message
-
postDocument
public static String postDocument(MAcctSchema[] ass, int AD_Table_ID, ResultSet rs, boolean force, boolean repost, String trxName) Post Document- Parameters:
ass
- accounting schemaAD_Table_ID
- Transaction tablers
- Result setforce
- force postingrepost
- Repost documenttrxName
- transaction- Returns:
- null if the document was posted or error message
-