Adempiere 3.5.2a

org.compiere.model
Class MRMALine

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_M_RMALine
          extended by org.compiere.model.MRMALine
All Implemented Interfaces:
Serializable, Comparator, I_M_RMALine, I_Persistent, Evaluatee

public class MRMALine
extends X_M_RMALine

RMA Line Model

Version:
$Id: MRMALine.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_M_RMALine
accessLevel, COLUMNNAME_Amt, COLUMNNAME_C_Charge_ID, COLUMNNAME_Description, COLUMNNAME_Line, COLUMNNAME_LineNetAmt, COLUMNNAME_M_InOutLine_ID, COLUMNNAME_M_RMA_ID, COLUMNNAME_M_RMALine_ID, COLUMNNAME_Processed, COLUMNNAME_Qty, COLUMNNAME_QtyDelivered, Model, Table_ID, Table_Name
 
Constructor Summary
MRMALine(Properties ctx, int M_RMALine_ID, String trxName)
          Standard Constructor
MRMALine(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
 void addDescription(String description)
          Add to Description
protected  boolean afterSave(boolean newRecord, boolean success)
          After Save
protected  boolean beforeSave(boolean newRecord)
          Before Save
 int getAD_OrgTrx_ID()
          Get Org Trx
 int getC_Activity_ID()
          Get Activity
 int getC_Campaign_ID()
          Get Campaign
 int getC_Project_ID()
          Get Project
 int getC_ProjectPhase_ID()
          Get Project Phase
 int getC_ProjectTask_ID()
          Get Project Task
 int getC_Tax_ID()
          Get Tax
 int getC_UOM_ID()
          Get UOM Based on Shipment line if present Default to Each (100) for charge
 int getM_AttributeSetInstance_ID()
          Get Attribute Set Instance
 int getM_Locator_ID()
          Get Locator
 int getM_Product_ID()
          Get Product
 MRMA getParent()
          Get Parent
 int getPrecision()
          Get precision Based on Invoice if the shipment was invoiced, on Order otherwise
 MInOutLine getShipLine()
          Get Ship Line
 BigDecimal getTotalAmt()
          Get Total Amt for the line including tax
 BigDecimal getUnitAmt()
          Calculates the unit amount for the product/charge
 int getUser1_ID()
          Get User1
 int getUser2_ID()
          Get User2
 boolean isShipLineInvoiced()
          Get whether the Ship line has been invoiced
 void setM_InOutLine_ID(int M_InOutLine_ID)
          Set M_InOutLine_ID
 
Methods inherited from class org.compiere.model.X_M_RMALine
get_AccessLevel, getAmt, getC_Charge_ID, getC_Charge, getDescription, getKeyNamePair, getLine, getLineNetAmt, getM_InOutLine_ID, getM_InOutLine, getM_RMA_ID, getM_RMA, getM_RMALine_ID, getQty, getQtyDelivered, initPO, isProcessed, setAmt, setC_Charge_ID, setDescription, setLine, setLineNetAmt, setM_RMA_ID, setM_RMALine_ID, setProcessed, setQty, setQtyDelivered, toString
 
Methods inherited from class org.compiere.model.PO
afterDelete, beforeDelete, 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

MRMALine

public MRMALine(Properties ctx,
                int M_RMALine_ID,
                String trxName)
Standard Constructor

Parameters:
ctx - context
M_RMALine_ID - id
trxName - transaction

MRMALine

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

Parameters:
ctx - context
rs - result set
trxName - transaction
Method Detail

getParent

public MRMA getParent()
Get Parent

Returns:
parent

setM_InOutLine_ID

public void setM_InOutLine_ID(int M_InOutLine_ID)
Set M_InOutLine_ID

Specified by:
setM_InOutLine_ID in interface I_M_RMALine
Overrides:
setM_InOutLine_ID in class X_M_RMALine
Parameters:
M_InOutLine_ID -

getShipLine

public MInOutLine getShipLine()
Get Ship Line

Returns:
ship line

getUnitAmt

public BigDecimal getUnitAmt()
Calculates the unit amount for the product/charge

Returns:
Unit Amount

getTotalAmt

public BigDecimal getTotalAmt()
Get Total Amt for the line including tax

Returns:
amt

isShipLineInvoiced

public boolean isShipLineInvoiced()
Get whether the Ship line has been invoiced

Returns:
true if invoiced

beforeSave

protected boolean beforeSave(boolean newRecord)
Before Save

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

afterSave

protected boolean afterSave(boolean newRecord,
                            boolean success)
After Save

Overrides:
afterSave in class PO
Parameters:
newRecord - new
success - success
Returns:
true if can be saved

addDescription

public void addDescription(String description)
Add to Description

Parameters:
description - text

getPrecision

public int getPrecision()
Get precision Based on Invoice if the shipment was invoiced, on Order otherwise


getC_UOM_ID

public int getC_UOM_ID()
Get UOM Based on Shipment line if present Default to Each (100) for charge

Returns:
UOM if based on shipment line and 100 for charge based

getM_Product_ID

public int getM_Product_ID()
Get Product

Returns:
product if based on shipment line and 0 for charge based

getC_Project_ID

public int getC_Project_ID()
Get Project

Returns:
project if based on shipment line and 0 for charge based

getC_ProjectPhase_ID

public int getC_ProjectPhase_ID()
Get Project Phase

Returns:
project phase if based on shipment line and 0 for charge based

getC_ProjectTask_ID

public int getC_ProjectTask_ID()
Get Project Task

Returns:
project task if based on shipment line and 0 for charge based

getC_Activity_ID

public int getC_Activity_ID()
Get Activity

Returns:
project phase if based on shipment line and 0 for charge based

getC_Campaign_ID

public int getC_Campaign_ID()
Get Campaign

Returns:
campaign if based on shipment line and 0 for charge based

getAD_OrgTrx_ID

public int getAD_OrgTrx_ID()
Get Org Trx

Returns:
Org Trx if based on shipment line and 0 for charge based

getUser1_ID

public int getUser1_ID()
Get User1

Returns:
user1 if based on shipment line and 0 for charge based

getUser2_ID

public int getUser2_ID()
Get User2

Returns:
user2 if based on shipment line and 0 for charge based

getM_AttributeSetInstance_ID

public int getM_AttributeSetInstance_ID()
Get Attribute Set Instance

Returns:
ASI if based on shipment line and 0 for charge based

getM_Locator_ID

public int getM_Locator_ID()
Get Locator

Returns:
locator if based on shipment line and 0 for charge based

getC_Tax_ID

public int getC_Tax_ID()
Get Tax

Returns:
Tax based on Invoice/Order line and Tax exempt for charge based

Adempiere 3.5.2a

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