Class MDistributionLine

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

public class MDistributionLine extends X_GL_DistributionLine
GL Distribution Line Model
Version:
$Id: MDistributionLine.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MDistributionLine

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

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

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

      public MDistributionLine(MDistributionLine copy)
      Copy constructor
      Parameters:
      copy -
    • MDistributionLine

      public MDistributionLine(Properties ctx, MDistributionLine copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MDistributionLine

      public MDistributionLine(Properties ctx, MDistributionLine copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • getParent

      public MDistribution getParent()
      Get Parent
      Returns:
      Returns the parent.
    • setParent

      public void setParent(MDistribution parent)
      Set Parent
      Parameters:
      parent - The parent to set.
    • setAccount

      public void setAccount(MAccount acct)
      Set Account
      Parameters:
      acct - account
    • getAccount

      public MAccount getAccount()
      Get Account Combination based on Account and Overwrite
      Returns:
      account
    • getAmt

      public BigDecimal getAmt()
      Get Distribution Amount
      Returns:
      Returns the amt.
    • setAmt

      public void setAmt(BigDecimal amt)
      Set Distribution Amount
      Parameters:
      amt - The amt to set.
    • getQty

      public BigDecimal getQty()
      Get Distribution Quantity
      Returns:
      Returns the qty.
    • setQty

      public void setQty(BigDecimal qty)
      Set Distribution Quantity
      Parameters:
      qty - The qty to set.
    • calculateAmt

      public void calculateAmt(BigDecimal amt, int precision)
      Calculate Distribution Amount
      Parameters:
      amt - The amt to be multiplied by percent.
      precision - precision
    • calculateQty

      public void calculateQty(BigDecimal qty)
      Calculate Distribution Quantity
      Parameters:
      qty - The qty to set to be multiplied by percent.
    • 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