Class MDistributionRunLine

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

public class MDistributionRunLine extends X_M_DistributionRunLine
Material Distribution Run List Line Model.
Note: feature not fully implemented and have been marked as inactive in application dictionary.
Version:
$Id: MDistributionRunLine.java,v 1.4 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MDistributionRunLine

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

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

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

    • getActualQty

      public BigDecimal getActualQty()
      Get Actual Qty
      Returns:
      actual Qty
    • addActualQty

      public void addActualQty(BigDecimal add)
      Add to Actual Qty
      Parameters:
      add - qty to add
    • getActualMin

      public BigDecimal getActualMin()
      Get Actual Min Qty
      Returns:
      actual Min Qty
    • addActualMin

      public void addActualMin(BigDecimal add)
      Add to Actual Min Qty
      Parameters:
      add - qty to add
    • isActualMinGtTotal

      public boolean isActualMinGtTotal()
      Is Actual Min Greater than Total Qty
      Returns:
      true if actual min > total qty
    • getActualAllocation

      public BigDecimal getActualAllocation()
      Get Actual Allocation Qty
      Returns:
      actual Allocation Qty
    • addActualAllocation

      public void addActualAllocation(BigDecimal add)
      Add to Actual Allocation Qty
      Parameters:
      add - qty to add
    • isActualAllocationEqTotal

      public boolean isActualAllocationEqTotal()
      Is Actual Allocation equals Total Qty
      Returns:
      true if actual allocation = total qty
    • getActualAllocationDiff

      public BigDecimal getActualAllocationDiff()
      Get Allocation Difference
      Returns:
      Total Qty - Allocation Qty
    • getLastDifference

      public BigDecimal getLastDifference()
      Get Last Allocation Difference
      Returns:
      difference
    • setLastDifference

      public void setLastDifference(BigDecimal difference)
      Set Last Allocation Difference
      Parameters:
      difference - difference
    • getMaxAllocation

      public BigDecimal getMaxAllocation()
      Get Max Allocation
      Returns:
      max allocation
    • setMaxAllocation

      public void setMaxAllocation(BigDecimal max, boolean set)
      Set Max Allocation if greater
      Parameters:
      max - max allocation to set
      set - true to always set to max (regardless of max is less than current max allocation)
    • resetCalculations

      public void resetCalculations()
      Reset all calculation variables (actual qty, actual min, actual allocation and max allocation) to zero
    • getProduct

      public MProduct getProduct()
      Get Product
      Returns:
      product
    • getUOMPrecision

      public int getUOMPrecision()
      Get Product UOM Precision
      Returns:
      UOM precision
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_M_DistributionRunLine
      Returns:
      info
    • getInfo

      public String getInfo()
      Get Info
      Returns:
      info