Class 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:
  • Constructor Details

    • MTimeExpenseLine

      public MTimeExpenseLine(Properties ctx, String S_TimeExpenseLine_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      S_TimeExpenseLine_UU - UUID key
      trxName - Transaction
    • MTimeExpenseLine

      public MTimeExpenseLine(Properties ctx, int S_TimeExpenseLine_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      S_TimeExpenseLine_ID - id
      trxName - transaction
    • MTimeExpenseLine

      public MTimeExpenseLine(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
  • Method Details

    • getParent

      public MTimeExpense getParent()
      Get Parent
      Returns:
      parent
    • getQtyInvoiced

      public BigDecimal getQtyInvoiced()
      Get Qty Invoiced
      Specified by:
      getQtyInvoiced in interface I_S_TimeExpenseLine
      Overrides:
      getQtyInvoiced in class X_S_TimeExpenseLine
      Returns:
      QtyInvoiced or Qty if QtyInvoiced is zero
    • getQtyReimbursed

      public BigDecimal getQtyReimbursed()
      Get Qty Reimbursed
      Specified by:
      getQtyReimbursed in interface I_S_TimeExpenseLine
      Overrides:
      getQtyReimbursed in class X_S_TimeExpenseLine
      Returns:
      QtyReimbursed or Qty if QtyReimbursed is zero
    • getPriceInvoiced

      public BigDecimal getPriceInvoiced()
      Get Price Invoiced
      Specified by:
      getPriceInvoiced in interface I_S_TimeExpenseLine
      Overrides:
      getPriceInvoiced in class X_S_TimeExpenseLine
      Returns:
      PriceInvoiced or InvoicePrice if PriceInvoiced is zero
    • getPriceReimbursed

      public BigDecimal getPriceReimbursed()
      Get Price Reimbursed
      Specified by:
      getPriceReimbursed in interface I_S_TimeExpenseLine
      Overrides:
      getPriceReimbursed in class X_S_TimeExpenseLine
      Returns:
      PriceReimbursed or converted amt if PriceReimbursed is zero
    • 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:
      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 class PO
      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.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a new record
      success - true if save operation was success
      Returns:
      if save was a success
    • 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 class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success