Class MDistributionRunLine

    • Constructor Detail

      • 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 Detail

      • getActualQty

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

        public void addActualQty​(BigDecimal add)
        Add to Actual Qty
        Parameters:
        add - number 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 - number to add
      • isActualMinGtTotal

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

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

        public void addActualAllocation​(BigDecimal add)
        Add to Actual Min Qty
        Parameters:
        add - number to add
      • isActualAllocationEqTotal

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

        public BigDecimal getActualAllocationDiff()
        Get Allocation Difference
        Returns:
        Total - 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 - allocation
        set - set to max
      • resetCalculations

        public void resetCalculations()
        Reset Calculations
      • getProduct

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

        public int getUOMPrecision()
        Get Product Standard Precision
        Returns:
        standard precision
      • getInfo

        public String getInfo()
        Get Info
        Returns:
        info