Difference between revisions of "Document Engine"
From ADempiere
This Wiki is read-only for reference purposes to avoid broken links.
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:Developer documentation]] | |
− | : | + | |
− | org.compiere. | + | *org.compiere.process.DocumentEngine |
− | + | **Implement logic for action that can be performed on a document. | |
− | + | ||
− | org.compiere.model.MSetup | + | *org.compiere.acct.Doc |
− | + | **Base class for all accounting document class that need posting. | |
+ | **Define the list of accounting document table and base document type as static constants. | ||
+ | **The mapping of accounting document table to accounting document class is coded in the method get (MAcctSchema[] ass, int AD_Table_ID, ResultSet rs, String trxName). The mapping is shown in the table below. | ||
+ | <br> | ||
+ | {| border="1" | ||
+ | |- | ||
+ | !width="100pt"|Table | ||
+ | !width="150pt"|Document Class | ||
+ | |- | ||
+ | |C_Invoice||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Invoice.java?view=markup org.compiere.acct.Doc_Invoice] | ||
+ | |- | ||
+ | |C_Allocation||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/DocLine_Allocation.java?view=markup org.compiere.acct.Doc_Allocation] | ||
+ | |- | ||
+ | |C_Cash||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Cash.java?view=markup org.compiere.acct.Doc_Cash] | ||
+ | |- | ||
+ | |C_BankStatement||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Bank.java?view=markup org.compiere.acct.Doc_Bank] | ||
+ | |- | ||
+ | |C_Order||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Order.java?view=markup org.compiere.acct.Doc_Order] | ||
+ | |- | ||
+ | |C_Payment||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Payment.java?view=markup org.compiere.acct.Doc_Payment] | ||
+ | |- | ||
+ | |M_InOut||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_InOut.java?view=markup org.compiere.acct.Doc_InOut] | ||
+ | |- | ||
+ | |M_Inventory||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Inventory.java?view=markup org.compiere.acct.Doc_Inventory] | ||
+ | |- | ||
+ | |M_Movement||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Movement.java?view=markup org.compiere.acct.Doc_Movement] | ||
+ | |- | ||
+ | |M_Production||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Production.java?view=markup org.compiere.acct.Doc_Production] | ||
+ | |- | ||
+ | |GL_Journal||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_GLJournal.java?view=markup org.compiere.acct.Doc_GLJournal] | ||
+ | |- | ||
+ | |M_MatchInv||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_MatchInv.java?view=markup org.compiere.acct.Doc_MatchInv] | ||
+ | |- | ||
+ | |M_MatchPO||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_MatchPO.java?view=markup org.compiere.acct.Doc_MatchPO] | ||
+ | |- | ||
+ | |C_ProjectIssue||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_ProjectIssue.java?view=markup org.compiere.acct.Doc_ProjectIssue] | ||
+ | |- | ||
+ | |M_Requisition||[http://adempiere.svn.sourceforge.net/viewvc/adempiere/trunk/base/src/org/compiere/acct/Doc_Requisition.java?view=markup org.compiere.acct.Doc_Requisition] | ||
+ | |} | ||
+ | <br> | ||
+ | *org.compiere.process.DocAction | ||
+ | **Define the list of document action as static constants. | ||
+ | **Define the list of document status as static constants. | ||
+ | **Model class that need to support the standard document action and status framework implement this interface. | ||
+ | *org.compiere.model.MSetup | ||
+ | **Create the list of document type for new Client ( Method createAccounting ). | ||
+ | *org.compiere.server.AcctProcessor | ||
+ | **Background process running on the JBoss server that perform the accounting document posting process. | ||
+ | * org.compiere.grid.ed.VDocAction | ||
+ | ** Define hardcoded in dynInit method the list of possible transitions, and transitions by table |
Latest revision as of 01:56, 13 April 2008
- org.compiere.process.DocumentEngine
- Implement logic for action that can be performed on a document.
- org.compiere.acct.Doc
- Base class for all accounting document class that need posting.
- Define the list of accounting document table and base document type as static constants.
- The mapping of accounting document table to accounting document class is coded in the method get (MAcctSchema[] ass, int AD_Table_ID, ResultSet rs, String trxName). The mapping is shown in the table below.
Table | Document Class |
---|---|
C_Invoice | org.compiere.acct.Doc_Invoice |
C_Allocation | org.compiere.acct.Doc_Allocation |
C_Cash | org.compiere.acct.Doc_Cash |
C_BankStatement | org.compiere.acct.Doc_Bank |
C_Order | org.compiere.acct.Doc_Order |
C_Payment | org.compiere.acct.Doc_Payment |
M_InOut | org.compiere.acct.Doc_InOut |
M_Inventory | org.compiere.acct.Doc_Inventory |
M_Movement | org.compiere.acct.Doc_Movement |
M_Production | org.compiere.acct.Doc_Production |
GL_Journal | org.compiere.acct.Doc_GLJournal |
M_MatchInv | org.compiere.acct.Doc_MatchInv |
M_MatchPO | org.compiere.acct.Doc_MatchPO |
C_ProjectIssue | org.compiere.acct.Doc_ProjectIssue |
M_Requisition | org.compiere.acct.Doc_Requisition |
- org.compiere.process.DocAction
- Define the list of document action as static constants.
- Define the list of document status as static constants.
- Model class that need to support the standard document action and status framework implement this interface.
- org.compiere.model.MSetup
- Create the list of document type for new Client ( Method createAccounting ).
- org.compiere.server.AcctProcessor
- Background process running on the JBoss server that perform the accounting document posting process.
- org.compiere.grid.ed.VDocAction
- Define hardcoded in dynInit method the list of possible transitions, and transitions by table