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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocgetDocument(MAcctSchema as, int AD_Table_ID, int Record_ID, String trxName) Create Posting documentstatic DocgetDocument(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 columnprotected static StringpostDocument(MAcctSchema[] ass, int AD_Table_ID, int Record_ID, boolean force, boolean repost, boolean isInBackDatePostingProcess, String trxName) Post Documentstatic StringpostDocument(MAcctSchema[] ass, int AD_Table_ID, int Record_ID, boolean force, boolean repost, String trxName) Post Documentstatic StringpostDocument(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 name- Returns:
- null if the document was posted or error message
-
postDocument
protected static String postDocument(MAcctSchema[] ass, int AD_Table_ID, int Record_ID, boolean force, boolean repost, boolean isInBackDatePostingProcess, String trxName) Post Document- Parameters:
ass- Accounting schemaAD_Table_ID- Transaction tableRecord_ID- Record ID of this documentforce- Force postingrepost- Repost documentisInBackDatePostingProcess- In a back-date posting processtrxName- Transaction name- 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 name- Returns:
- null if the document was posted or error message
-