Package org.compiere.model
Class MTimeExpenseLine
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_S_TimeExpenseLine
-
- org.compiere.model.MTimeExpenseLine
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_Persistent
,I_S_TimeExpenseLine
,Evaluatee
public class MTimeExpenseLine extends X_S_TimeExpenseLine
Time + Expense Line Model- Version:
- $Id: MTimeExpenseLine.java,v 1.4 2006/09/25 00:59:41 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, LOCAL_TRX_PREFIX, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
-
Fields inherited from interface org.compiere.model.I_S_TimeExpenseLine
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_C_Activity_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_Campaign_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_InvoiceLine_ID, COLUMNNAME_C_OrderLine_ID, COLUMNNAME_C_Project_ID, COLUMNNAME_C_ProjectPhase_ID, COLUMNNAME_C_ProjectTask_ID, COLUMNNAME_C_UOM_ID, COLUMNNAME_ConvertedAmt, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DateExpense, COLUMNNAME_Description, COLUMNNAME_ExpenseAmt, COLUMNNAME_InvoicePrice, COLUMNNAME_IsActive, COLUMNNAME_IsInvoiced, COLUMNNAME_IsTimeReport, COLUMNNAME_Line, COLUMNNAME_M_Product_ID, COLUMNNAME_Note, COLUMNNAME_PriceInvoiced, COLUMNNAME_PriceReimbursed, COLUMNNAME_Processed, COLUMNNAME_Qty, COLUMNNAME_QtyInvoiced, COLUMNNAME_QtyReimbursed, COLUMNNAME_S_ResourceAssignment_ID, COLUMNNAME_S_TimeExpense_ID, COLUMNNAME_S_TimeExpenseLine_ID, COLUMNNAME_S_TimeExpenseLine_UU, COLUMNNAME_S_TimeType_ID, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MTimeExpenseLine(Properties ctx, int S_TimeExpenseLine_ID, String trxName)
Standard ConstructorMTimeExpenseLine(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
afterDelete(boolean success)
After Deleteprotected boolean
afterSave(boolean newRecord, boolean success)
After Saveprotected boolean
beforeSave(boolean newRecord)
Before Save.BigDecimal
getApprovalAmt()
Get Approval Amtint
getC_Currency_Report_ID()
Get C_Currency_ID of Report (Price List)MTimeExpense
getParent()
Get ParentBigDecimal
getPriceInvoiced()
Get Price InvoicedBigDecimal
getPriceReimbursed()
Get Price ReimbursedBigDecimal
getQtyInvoiced()
Get Qty InvoicedBigDecimal
getQtyReimbursed()
Get Qty Reimbursedprotected void
setC_Currency_Report_ID(int C_Currency_ID)
Set C_Currency_ID of Report (Price List)-
Methods inherited from class org.compiere.model.X_S_TimeExpenseLine
get_AccessLevel, getC_Activity, getC_Activity_ID, getC_BPartner, getC_BPartner_ID, getC_Campaign, getC_Campaign_ID, getC_Currency, getC_Currency_ID, getC_InvoiceLine, getC_InvoiceLine_ID, getC_OrderLine, getC_OrderLine_ID, getC_Project, getC_Project_ID, getC_ProjectPhase, getC_ProjectPhase_ID, getC_ProjectTask, getC_ProjectTask_ID, getC_UOM, getC_UOM_ID, getConvertedAmt, getDateExpense, getDescription, getExpenseAmt, getInvoicePrice, getKeyNamePair, getLine, getM_Product, getM_Product_ID, getNote, getQty, getS_ResourceAssignment_ID, getS_TimeExpense, getS_TimeExpense_ID, getS_TimeExpenseLine_ID, getS_TimeExpenseLine_UU, getS_TimeType, getS_TimeType_ID, initPO, isInvoiced, isProcessed, isTimeReport, setC_Activity_ID, setC_BPartner_ID, setC_Campaign_ID, setC_Currency_ID, setC_InvoiceLine_ID, setC_OrderLine_ID, setC_Project_ID, setC_ProjectPhase_ID, setC_ProjectTask_ID, setC_UOM_ID, setConvertedAmt, setDateExpense, setDescription, setExpenseAmt, setInvoicePrice, setIsInvoiced, setIsTimeReport, setLine, setM_Product_ID, setNote, setPriceInvoiced, setPriceReimbursed, setProcessed, setQty, setQtyInvoiced, setQtyReimbursed, setS_ResourceAssignment_ID, setS_TimeExpense_ID, setS_TimeExpenseLine_ID, setS_TimeExpenseLine_UU, setS_TimeType_ID, toString
-
Methods inherited from class org.compiere.model.PO
beforeDelete, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, 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_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock, update_Tree, validForeignKeys
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface org.compiere.model.I_Persistent
save
-
Methods inherited from interface org.compiere.model.I_S_TimeExpenseLine
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
-
-
-
Constructor Detail
-
MTimeExpenseLine
public MTimeExpenseLine(Properties ctx, int S_TimeExpenseLine_ID, String trxName)
Standard Constructor- Parameters:
ctx
- contextS_TimeExpenseLine_ID
- idtrxName
- transaction
-
MTimeExpenseLine
public MTimeExpenseLine(Properties ctx, ResultSet rs, String trxName)
Load Constructor- Parameters:
ctx
- contextrs
- result settrxName
- transaction
-
-
Method Detail
-
getParent
public MTimeExpense getParent()
Get Parent- Returns:
- parent
-
getQtyInvoiced
public BigDecimal getQtyInvoiced()
Get Qty Invoiced- Specified by:
getQtyInvoiced
in interfaceI_S_TimeExpenseLine
- Overrides:
getQtyInvoiced
in classX_S_TimeExpenseLine
- Returns:
- entered or qty
-
getQtyReimbursed
public BigDecimal getQtyReimbursed()
Get Qty Reimbursed- Specified by:
getQtyReimbursed
in interfaceI_S_TimeExpenseLine
- Overrides:
getQtyReimbursed
in classX_S_TimeExpenseLine
- Returns:
- entered or qty
-
getPriceInvoiced
public BigDecimal getPriceInvoiced()
Get Price Invoiced- Specified by:
getPriceInvoiced
in interfaceI_S_TimeExpenseLine
- Overrides:
getPriceInvoiced
in classX_S_TimeExpenseLine
- Returns:
- entered or invoice price
-
getPriceReimbursed
public BigDecimal getPriceReimbursed()
Get Price Reimbursed- Specified by:
getPriceReimbursed
in interfaceI_S_TimeExpenseLine
- Overrides:
getPriceReimbursed
in classX_S_TimeExpenseLine
- Returns:
- entered or converted amt
-
getApprovalAmt
public BigDecimal getApprovalAmt()
Get Approval Amt- Returns:
- qty * converted amt
-
getC_Currency_Report_ID
public int getC_Currency_Report_ID()
Get C_Currency_ID of Report (Price List)- Returns:
- currency
-
setC_Currency_Report_ID
protected void setC_Currency_Report_ID(int C_Currency_ID)
Set C_Currency_ID of Report (Price List)- Parameters:
C_Currency_ID
- currency
-
beforeSave
protected boolean beforeSave(boolean newRecord)
Before Save. Calculate converted amt- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new- Returns:
- true
-
afterSave
protected boolean afterSave(boolean newRecord, boolean success)
After Save
-
afterDelete
protected boolean afterDelete(boolean success)
After Delete- Overrides:
afterDelete
in classPO
- Parameters:
success
- success- Returns:
- success
-
-