Class MPaySelectionLine

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

public class MPaySelectionLine extends X_C_PaySelectionLine
Payment Selection Line Model
Version:
$Id: MPaySelectionLine.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MPaySelectionLine

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

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

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

      public MPaySelectionLine(MPaySelection ps, int Line, String PaymentRule)
      Parent Constructor
      Parameters:
      ps - parent
      Line - line
      PaymentRule - payment rule
  • Method Details

    • xsetInvoice

      @Deprecated(forRemoval=true, since="11") public void xsetInvoice(int C_Invoice_ID, boolean isSOTrx, BigDecimal OpenAmt, BigDecimal PayAmt, BigDecimal DiscountAmt)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set Invoice Info
      Parameters:
      C_Invoice_ID - invoice
      isSOTrx - sales trx
      PayAmt - payment
      OpenAmt - open
      DiscountAmt - discount
    • setInvoice

      public void setInvoice(int C_Invoice_ID, boolean isSOTrx, BigDecimal OpenAmt, BigDecimal PayAmt, BigDecimal DiscountAmt, BigDecimal WriteOffAmt)
      Set Invoice Info
      Parameters:
      C_Invoice_ID - invoice
      isSOTrx - sales trx flag
      PayAmt - payment amount
      OpenAmt - open amount
      DiscountAmt - discount amount
      WriteOffAmt - writeoff amount
    • getInvoice

      public MInvoice getInvoice()
      Get Invoice
      Returns:
      invoice
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
      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
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_PaySelectionLine
      Returns:
      info