Class MDunningRunLine

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_C_DunningRunLine, I_Persistent, Evaluatee

public class MDunningRunLine extends X_C_DunningRunLine
Dunning Run Line Model
Version:
$Id: MDunningRunLine.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MDunningRunLine

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

      public MDunningRunLine(Properties ctx, int C_DunningRunLine_ID, String trxName)
      Standarc Constructor
      Parameters:
      ctx - ctx
      C_DunningRunLine_ID - id
      trxName - transaction
    • MDunningRunLine

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

      public MDunningRunLine(MDunningRunEntry parent)
      Parent Constructor
      Parameters:
      parent - parent
  • Method Details

    • getParent

      public MDunningRunEntry getParent()
      Get Parent
      Returns:
      parent
    • getInvoice

      public MInvoice getInvoice()
      Get Invoice
      Returns:
      invoice or null
    • setInvoice

      public void setInvoice(MInvoice invoice)
      Set Invoice
      Parameters:
      invoice - The invoice to set.
    • setInvoice

      public void setInvoice(int C_Invoice_ID, int C_Currency_ID, BigDecimal GrandTotal, BigDecimal Open, BigDecimal FeeAmount, int DaysDue, boolean IsInDispute, int TimesDunned, int DaysAfterLast)
      Set Invoice
      Parameters:
      C_Invoice_ID -
      C_Currency_ID -
      GrandTotal -
      Open -
      FeeAmount -
      DaysDue -
      IsInDispute -
      TimesDunned -
      DaysAfterLast - not used
    • setFee

      public void setFee(int C_Currency_ID, BigDecimal FeeAmount)
      Set Fee
      Parameters:
      C_Currency_ID -
      FeeAmount -
    • getPayment

      public MPayment getPayment()
      Get Payment
      Returns:
      payment or null
    • setPayment

      public void setPayment(int C_Payment_ID, int C_Currency_ID, BigDecimal PayAmt, BigDecimal OpenAmt)
      Set Payment
      Parameters:
      C_Payment_ID -
      C_Currency_ID -
      PayAmt -
      OpenAmt -
    • getC_CurrencyFrom_ID

      public int getC_CurrencyFrom_ID()
      Get Currency From (Invoice/Payment)
      Returns:
      C_Currency_ID of invoice or payment
    • getC_CurrencyTo_ID

      public int getC_CurrencyTo_ID()
      Get Currency To from Parent
      Returns:
      C_Currency_ID of parent (MDunningRunEntry)
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Update amount (open, converted, total).
      Update collection status of invoice.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      true
    • 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