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
Time + Expense Line Model
- Version:
- $Id: MTimeExpenseLine.java,v 1.4 2006/09/25 00:59:41 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
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, UUID_NEW_RECORD, 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_LineNetAmt, 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
ConstructorDescriptionMTimeExpenseLine
(Properties ctx, int S_TimeExpenseLine_ID, String trxName) Standard ConstructorMTimeExpenseLine
(Properties ctx, String S_TimeExpenseLine_UU, String trxName) UUID based ConstructorMTimeExpenseLine
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
afterDelete
(boolean success) Execute after Delete operations.protected boolean
afterSave
(boolean newRecord, boolean success) Called after Save for Post-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.protected boolean
beforeSave
(boolean newRecord) Called before Save for Pre-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.Get Approval Amtint
Get C_Currency_ID of Report (Price List)Get ParentGet Price InvoicedGet Price ReimbursedGet Qty InvoicedGet 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, getLineNetAmt, 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, setLineNetAmt, 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, buildInsertSQL, 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_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, 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, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, 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, toInsertSQL, 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 Details
-
MTimeExpenseLine
UUID based Constructor- Parameters:
ctx
- ContextS_TimeExpenseLine_UU
- UUID keytrxName
- Transaction
-
MTimeExpenseLine
Standard Constructor- Parameters:
ctx
- contextS_TimeExpenseLine_ID
- idtrxName
- transaction
-
MTimeExpenseLine
Load Constructor- Parameters:
ctx
- contextrs
- result settrxName
- transaction
-
-
Method Details
-
getParent
Get Parent- Returns:
- parent
-
getQtyInvoiced
Get Qty Invoiced- Specified by:
getQtyInvoiced
in interfaceI_S_TimeExpenseLine
- Overrides:
getQtyInvoiced
in classX_S_TimeExpenseLine
- Returns:
- QtyInvoiced or Qty if QtyInvoiced is zero
-
getQtyReimbursed
Get Qty Reimbursed- Specified by:
getQtyReimbursed
in interfaceI_S_TimeExpenseLine
- Overrides:
getQtyReimbursed
in classX_S_TimeExpenseLine
- Returns:
- QtyReimbursed or Qty if QtyReimbursed is zero
-
getPriceInvoiced
Get Price Invoiced- Specified by:
getPriceInvoiced
in interfaceI_S_TimeExpenseLine
- Overrides:
getPriceInvoiced
in classX_S_TimeExpenseLine
- Returns:
- PriceInvoiced or InvoicePrice if PriceInvoiced is zero
-
getPriceReimbursed
Get Price Reimbursed- Specified by:
getPriceReimbursed
in interfaceI_S_TimeExpenseLine
- Overrides:
getPriceReimbursed
in classX_S_TimeExpenseLine
- Returns:
- PriceReimbursed or converted amt if PriceReimbursed is zero
-
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:
- C_Currency_ID of Report (if set) or C_Currency_ID of header
-
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) Description copied from class:PO
Called before Save for Pre-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- true if it is a new record- Returns:
- true if record can be saved
-
afterSave
protected boolean afterSave(boolean newRecord, boolean success) Description copied from class:PO
Called after Save for Post-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it. -
afterDelete
protected boolean afterDelete(boolean success) Description copied from class:PO
Execute after Delete operations.
Default implementation is nop, to be implemented in sub-classes that needed it.- Overrides:
afterDelete
in classPO
- Parameters:
success
- true if record deleted- Returns:
- true if delete is a success
-