DocType Material Receipt

From ADempiere
Revision as of 03:25, 28 September 2008 by Kzmp (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

Profile for Material Receipt

The Material Receipt (MM Receipt) is a document of base type Material Receipt (DocBaseType MMR). It can be issued from

 Menu -> Requisition to Invoice -> Material Receipt

window.

Purpose of Material Receipt

When in the whole business process it should be used and in what cases its use is specifically not appropriate?

 This functionality is used to receive products from a vendor.
 It should be used by the warehouse stuff at the point of receival of goods from vendor. 

Accounting consequences

  • How is the Material Receipt involved in the accounting processes, e.g. what accounts are debited and what accounts are credited through its use (if any)?


Accounts affected by Material Receipt
Posting Type Accounts and their meaning
Debit TBD -
Credit TDB -


Note: If a document generates accounting consequences the date of the transaction (in this case the Account date) has to fall within an open accounting period.


  • How and where in the ADempiere's Client App those accounts can be changed (switched to another or complementary meanings)?

Place in the Documents Processing Chain

  • What other documents the Material Receipt generates if any?
  NONE

Debugging the Material Movement document

  • What database tables hold the document's data?
 The main table for the Material Receipt (where they are created and kept) is M_InOut. There are a few auxiliary tables completing its functionality. They are: 
   * M_InOutLine is where the lines of the document are kept 
  Please note that the tables are also used to store the Shipment documents. You may recognize whether something is a Shipment or a Material Receipt by looking at issotrx. If it is a Material receipt the value should be 'N'.

  • What Java classes and methods define the document's behavior?
    • The model class MInOut.java - this class extends the base model X_M_InOut, implements the DocAction interface. The most interesting methods involved in the Material Receipt workflow are:
      • MInOut.prepareIt() -
      • MInOut.completeIt() -
      • MInOut.voidIt() - This method voids already created document. If the document was not completed then it simply sets the quantities to zero.
      • MInOut.reverseCorrectIt() - This method creates a reversal document. This is done by making a copy of the current document and negating the quantity. Finally it completes the reversal document and closes both the original and reversal documents.
    • The posting class Doc_InOut.java - this class extends the abstract class Doc with concrete implementations of the methods for accounting of documents.
      • Doc_InOut.post() - respoinsible for performing the posting of the document. It calls Doc_InOut.postLogic()
      • Doc_InOut.postLogic() - creates the actual account entries.