Class MInOutLine

    • Constructor Detail

      • MInOutLine

        public MInOutLine​(Properties ctx,
                          int M_InOutLine_ID,
                          String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_InOutLine_ID - id
        trxName - trx name
      • MInOutLine

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

        public MInOutLine​(MInOut inout)
        Parent Constructor
        Parameters:
        inout - parent
    • Method Detail

      • getOfOrderLine

        public static MInOutLine[] getOfOrderLine​(Properties ctx,
                                                  int C_OrderLine_ID,
                                                  String where,
                                                  String trxName)
        Get Ship lines Of Order Line
        Parameters:
        ctx - context
        C_OrderLine_ID - line
        where - optional addition where clause
        trxName - transaction
        Returns:
        array of receipt lines
      • getOfRMALine

        public static MInOutLine[] getOfRMALine​(Properties ctx,
                                                int M_RMALine_ID,
                                                String where,
                                                String trxName)
        Get Ship lines Of RMA Line
        Parameters:
        ctx - context
        M_RMALine_ID - line
        where - optional addition where clause
        trxName - transaction
        Returns:
        array of receipt lines
      • get

        public static MInOutLine[] get​(Properties ctx,
                                       int C_OrderLine_ID,
                                       String trxName)
        Get Ship lines Of Order Line
        Parameters:
        ctx - context
        C_OrderLine_ID - line
        trxName - transaction
        Returns:
        array of receipt lines2
      • getParent

        public MInOut getParent()
        Get Parent
        Returns:
        parent
      • setOrderLine

        public void setOrderLine​(MOrderLine oLine,
                                 int M_Locator_ID,
                                 BigDecimal Qty)
        Set Order Line. Does not set Quantity!
        Parameters:
        oLine - order line
        M_Locator_ID - locator
        Qty - used only to find suitable locator
      • setInvoiceLine

        public void setInvoiceLine​(MInvoiceLine iLine,
                                   int M_Locator_ID,
                                   BigDecimal Qty)
        Set Invoice Line. Does not set Quantity!
        Parameters:
        iLine - invoice line
        M_Locator_ID - locator
        Qty - qty only fo find suitable locator
      • getM_Warehouse_ID

        public int getM_Warehouse_ID()
        Get Warehouse
        Returns:
        Returns the m_Warehouse_ID.
      • setM_Warehouse_ID

        public void setM_Warehouse_ID​(int warehouse_ID)
        Set Warehouse
        Parameters:
        warehouse_ID - The m_Warehouse_ID to set.
      • setM_Locator_ID

        public void setM_Locator_ID​(BigDecimal Qty)
        Set (default) Locator based on qty.
        Parameters:
        Qty - quantity Assumes Warehouse is set
      • setQty

        public void setQty​(BigDecimal Qty)
        Set Movement/Movement Qty
        Parameters:
        Qty - Entered/Movement Qty
      • getProduct

        public MProduct getProduct()
        Get Product
        Returns:
        product or null
      • setProduct

        public void setProduct​(MProduct product)
        Set Product
        Parameters:
        product - product
      • setM_Product_ID

        public void setM_Product_ID​(int M_Product_ID,
                                    boolean setUOM)
        Set M_Product_ID
        Parameters:
        M_Product_ID - product
        setUOM - also set UOM from product
      • setM_Product_ID

        public void setM_Product_ID​(int M_Product_ID,
                                    int C_UOM_ID)
        Set Product and UOM
        Parameters:
        M_Product_ID - product
        C_UOM_ID - uom
      • addDescription

        public void addDescription​(String description)
        Add to Description
        Parameters:
        description - text
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        save
      • beforeDelete

        protected boolean beforeDelete()
        Before Delete
        Overrides:
        beforeDelete in class PO
        Returns:
        true if drafted
      • getBase

        public BigDecimal getBase​(String CostDistribution)
        Get Base value for Cost Distribution
        Parameters:
        CostDistribution - cost Distribution
        Returns:
        base number
      • sameOrderLineUOM

        public boolean sameOrderLineUOM()