Adempiere 3.5.2a

org.compiere.model
Class MAllocationLine

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_C_AllocationLine
          extended by org.compiere.model.MAllocationLine
All Implemented Interfaces:
Serializable, Comparator, I_C_AllocationLine, I_Persistent, Evaluatee

public class MAllocationLine
extends X_C_AllocationLine

Allocation Line Model

Version:
$Id: MAllocationLine.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Fields inherited from interface org.compiere.model.I_C_AllocationLine
accessLevel, COLUMNNAME_Amount, COLUMNNAME_C_AllocationHdr_ID, COLUMNNAME_C_AllocationLine_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_CashLine_ID, COLUMNNAME_C_Invoice_ID, COLUMNNAME_C_Order_ID, COLUMNNAME_C_Payment_ID, COLUMNNAME_DateTrx, COLUMNNAME_DiscountAmt, COLUMNNAME_IsManual, COLUMNNAME_OverUnderAmt, COLUMNNAME_WriteOffAmt, Model, Table_ID, Table_Name
 
Constructor Summary
MAllocationLine(MAllocationHdr parent)
          Parent Constructor
MAllocationLine(MAllocationHdr parent, BigDecimal Amount, BigDecimal DiscountAmt, BigDecimal WriteOffAmt, BigDecimal OverUnderAmt)
          Parent Constructor
MAllocationLine(Properties ctx, int C_AllocationLine_ID, String trxName)
          Standard Constructor
MAllocationLine(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
protected  boolean beforeDelete()
          Before Delete
protected  boolean beforeSave(boolean newRecord)
          Before Save
 Timestamp getDateTrx()
          Get Parent Trx Date
 MInvoice getInvoice()
          Get Invoice
 MAllocationHdr getParent()
          Get Parent
protected  int processIt(boolean reverse)
          Process Allocation (does not update line)
 void setDocInfo(int C_BPartner_ID, int C_Order_ID, int C_Invoice_ID)
          Set Document Info
protected  void setParent(MAllocationHdr parent)
          Set Parent
 void setPaymentInfo(int C_Payment_ID, int C_CashLine_ID)
          Set Payment Info
 String toString()
          String Representation
 
Methods inherited from class org.compiere.model.X_C_AllocationLine
get_AccessLevel, getAmount, getC_AllocationHdr_ID, getC_AllocationHdr, getC_AllocationLine_ID, getC_BPartner_ID, getC_BPartner, getC_CashLine_ID, getC_CashLine, getC_Invoice_ID, getC_Invoice, getC_Order_ID, getC_Order, getC_Payment_ID, getC_Payment, getDiscountAmt, getKeyNamePair, getOverUnderAmt, getWriteOffAmt, initPO, isManual, setAmount, setC_AllocationHdr_ID, setC_AllocationLine_ID, setC_BPartner_ID, setC_CashLine_ID, setC_Invoice_ID, setC_Order_ID, setC_Payment_ID, setDateTrx, setDiscountAmt, setIsManual, setOverUnderAmt, setWriteOffAmt
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compiere.model.I_Persistent
save
 

Constructor Detail

MAllocationLine

public MAllocationLine(Properties ctx,
                       int C_AllocationLine_ID,
                       String trxName)
Standard Constructor

Parameters:
ctx - context
C_AllocationLine_ID - id
trxName - name

MAllocationLine

public MAllocationLine(Properties ctx,
                       ResultSet rs,
                       String trxName)
Load Constructor

Parameters:
ctx - ctx
rs - result set
trxName - transaction

MAllocationLine

public MAllocationLine(MAllocationHdr parent)
Parent Constructor

Parameters:
parent - parent

MAllocationLine

public MAllocationLine(MAllocationHdr parent,
                       BigDecimal Amount,
                       BigDecimal DiscountAmt,
                       BigDecimal WriteOffAmt,
                       BigDecimal OverUnderAmt)
Parent Constructor

Parameters:
parent - parent
Amount - amount
DiscountAmt - optional discount
WriteOffAmt - optional write off
OverUnderAmt - over/underpayment
Method Detail

getParent

public MAllocationHdr getParent()
Get Parent

Returns:
parent

setParent

protected void setParent(MAllocationHdr parent)
Set Parent

Parameters:
parent - parent

getDateTrx

public Timestamp getDateTrx()
Get Parent Trx Date

Specified by:
getDateTrx in interface I_C_AllocationLine
Overrides:
getDateTrx in class X_C_AllocationLine
Returns:
date trx

setDocInfo

public void setDocInfo(int C_BPartner_ID,
                       int C_Order_ID,
                       int C_Invoice_ID)
Set Document Info

Parameters:
C_BPartner_ID - partner
C_Order_ID - order
C_Invoice_ID - invoice

setPaymentInfo

public void setPaymentInfo(int C_Payment_ID,
                           int C_CashLine_ID)
Set Payment Info

Parameters:
C_Payment_ID - payment
C_CashLine_ID - cash line

getInvoice

public MInvoice getInvoice()
Get Invoice

Returns:
invoice or null

beforeSave

protected boolean beforeSave(boolean newRecord)
Before Save

Overrides:
beforeSave in class PO
Parameters:
newRecord -
Returns:
save

beforeDelete

protected boolean beforeDelete()
Before Delete

Overrides:
beforeDelete in class PO
Returns:
true if reversed

toString

public String toString()
String Representation

Overrides:
toString in class X_C_AllocationLine
Returns:
info

processIt

protected int processIt(boolean reverse)
Process Allocation (does not update line). - Update and Link Invoice/Payment/Cash

Parameters:
reverse - if true allocation is reversed
Returns:
C_BPartner_ID

Adempiere 3.5.2a

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