Adempiere 3.5.2a

org.compiere.acct
Class Doc_MatchInv

java.lang.Object
  extended by org.compiere.acct.Doc
      extended by org.compiere.acct.Doc_MatchInv

public class Doc_MatchInv
extends Doc

Post MatchInv Documents.

  Table:              M_MatchInv (472)
  Document Types:     MXI
  
Update Costing Records

Version:
$Id: Doc_MatchInv.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $ FR [ 1840016 ] Avoid usage of clearing accounts - subject to C_AcctSchema.IsPostIfClearingEqual Avoid posting if both accounts Not Invoiced Receipts and Inventory Clearing are equal
Author:
Jorg Janke

Field Summary
 
Fields inherited from class org.compiere.acct.Doc
ACCTTYPE_BankAsset, ACCTTYPE_BankInTransit, ACCTTYPE_C_Prepayment, ACCTTYPE_C_Receivable, ACCTTYPE_C_Receivable_Services, ACCTTYPE_CashAsset, ACCTTYPE_CashDifference, ACCTTYPE_CashExpense, ACCTTYPE_CashReceipt, ACCTTYPE_CashTransfer, ACCTTYPE_Charge, ACCTTYPE_CommitmentOffset, ACCTTYPE_CommitmentOffsetSales, ACCTTYPE_DiscountExp, ACCTTYPE_DiscountRev, ACCTTYPE_InterestExp, ACCTTYPE_InterestRev, ACCTTYPE_InvDifferences, ACCTTYPE_NotInvoicedReceipts, ACCTTYPE_PaymentSelect, ACCTTYPE_PPVOffset, ACCTTYPE_ProjectAsset, ACCTTYPE_ProjectWIP, ACCTTYPE_UnallocatedCash, ACCTTYPE_V_Liability, ACCTTYPE_V_Liability_Services, ACCTTYPE_V_Prepayment, ACCTTYPE_WriteOff, AMTTYPE_Charge, AMTTYPE_Gross, AMTTYPE_Net, DOCTYPE_Allocation, DOCTYPE_APCredit, DOCTYPE_APInvoice, DOCTYPE_APPayment, DOCTYPE_ARCredit, DOCTYPE_ARInvoice, DOCTYPE_ARProForma, DOCTYPE_ARReceipt, DOCTYPE_BankStatement, DOCTYPE_CashJournal, DOCTYPE_GLJournal, DOCTYPE_MatInventory, DOCTYPE_MatMatchInv, DOCTYPE_MatMatchPO, DOCTYPE_MatMovement, DOCTYPE_MatProduction, DOCTYPE_MatReceipt, DOCTYPE_MatShipment, DOCTYPE_Payroll, DOCTYPE_POrder, DOCTYPE_ProjectIssue, DOCTYPE_PurchaseRequisition, DOCTYPE_SOrder, documentsTableID, documentsTableName, log, NO_CURRENCY, p_Error, p_lines, p_po, p_Status, s_log, STATUS_Error, STATUS_InvalidAccount, STATUS_NotBalanced, STATUS_NotConvertible, STATUS_NotPosted, STATUS_PeriodClosed, STATUS_Posted, STATUS_PostPrepared
 
Constructor Summary
protected Doc_MatchInv(MAcctSchema[] ass, ResultSet rs, String trxName)
          Constructor
 
Method Summary
 ArrayList<Fact> createFacts(MAcctSchema as)
          Create Facts (the accounting logic) for MXI.
 BigDecimal getBalance()
          Get Source Currency Balance - subtracts line and tax amounts from total - no rounding
protected  String loadDocumentDetails()
          Load Specific Document Details
 
Methods inherited from class org.compiere.acct.Doc
get_ID, get_Table_ID, get_TableName, get, get, getAccount, getAD_Client_ID, getAD_Org_ID, getAD_OrgTrx_ID, getAmount, getAmount, getBP_C_SalesRegion_ID, getC_Activity_ID, getC_BankAccount_ID, getC_BPartner_ID, getC_BPartner_Location_ID, getC_Campaign_ID, getC_CashBook_ID, getC_Charge_ID, getC_ConversionType_ID, getC_Currency_ID, getC_DocType_ID, getC_LocFrom_ID, getC_LocTo_ID, getC_Period_ID, getC_Project_ID, getC_SalesRegion_ID, getCtx, getDateAcct, getDateDoc, getDescription, getDocLine, getDocumentNo, getDocumentType, getFacts, getGL_Budget_ID, getGL_Category_ID, getM_Product_ID, getM_Warehouse_ID, getPO, getQty, getSalesRep_ID, getTrxName, getUser1_ID, getUser2_ID, getValidCombination_ID, getValue, isBalanced, isConvertible, isMultiCurrency, isPeriodOpen, isPosted, isSOTrx, isTaxIncluded, post, postImmediate, setAmount, setBP_C_SalesRegion_ID, setC_BankAccount_ID, setC_BPartner_ID, setC_CashBook_ID, setC_Currency_ID, setC_LocFrom_ID, setC_LocTo_ID, setDateAcct, setDateDoc, setDocumentType, setIsMultiCurrency, setIsTaxIncluded, setPeriod, setQty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Doc_MatchInv

protected Doc_MatchInv(MAcctSchema[] ass,
                       ResultSet rs,
                       String trxName)
Constructor

Parameters:
ass - accounting schemata
rs - record
trxName - trx
Method Detail

loadDocumentDetails

protected String loadDocumentDetails()
Load Specific Document Details

Specified by:
loadDocumentDetails in class Doc
Returns:
error message or null

getBalance

public BigDecimal getBalance()
Get Source Currency Balance - subtracts line and tax amounts from total - no rounding

Specified by:
getBalance in class Doc
Returns:
Zero (always balanced)

createFacts

public ArrayList<Fact> createFacts(MAcctSchema as)
Create Facts (the accounting logic) for MXI. (single line)
      NotInvoicedReceipts     DR                        (Receipt Org)
      InventoryClearing               CR
      InvoicePV               DR      CR  (difference)
  Commitment
                Expense                                                 CR
                Offset                                  DR
  

Specified by:
createFacts in class Doc
Parameters:
as - accounting schema
Returns:
Fact

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.