Package org.compiere.acct
Class DocManager
- java.lang.Object
-
- org.compiere.acct.DocManager
-
public class DocManager extends Object
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 Modifier and Type Field Description static String
IDOC_FACTORY_CACHE_TABLE_NAME
-
Constructor Summary
Constructors Constructor Description DocManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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[]
getDocumentsTableID()
static String[]
getDocumentsTableName()
static 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 Detail
-
IDOC_FACTORY_CACHE_TABLE_NAME
public static final String IDOC_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDocumentsTableID
public static int[] getDocumentsTableID()
-
getDocumentsTableName
public static String[] getDocumentsTableName()
-
getDocument
public static Doc getDocument(MAcctSchema as, int AD_Table_ID, int Record_ID, String trxName)
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
public static Doc getDocument(MAcctSchema as, int AD_Table_ID, ResultSet rs, String trxName)
Create Posting document- Parameters:
as
- accounting schemaAD_Table_ID
- Table ID of Documentsrs
- ResultSettrxName
- transaction name- Returns:
- Document
- 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
-
-