Class MMovementLine

    • Field Detail

      • m_parent

        protected MMovement m_parent
        Parent
    • Constructor Detail

      • MMovementLine

        public MMovementLine​(Properties ctx,
                             int M_MovementLine_ID,
                             String trxName)
        Standard Cosntructor
        Parameters:
        ctx - context
        M_MovementLine_ID - id
        trxName - transaction
      • MMovementLine

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

        public MMovementLine​(MMovement parent)
        Parent constructor
        Parameters:
        parent - parent
    • Method Detail

      • addDescription

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

        public MProduct getProduct()
        Get Product
        Returns:
        product or null if not defined
      • getParent

        public MMovement getParent()
        get Parent
        Returns:
        Parent Movement
      • beforeSave

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

        protected boolean beforeDelete()
        Before Delete
        Overrides:
        beforeDelete in class PO
        Returns:
        true if it can be deleted
      • setOrderLine

        public void setOrderLine​(MDDOrderLine oLine,
                                 BigDecimal Qty,
                                 boolean isReceipt)
        Set Distribution Order Line. Does not set Quantity!
        Parameters:
        oLine - order line
        Qty - used only to find suitable locator
        isReceipt -
      • getOfOrderLine

        public static MMovementLine[] getOfOrderLine​(Properties ctx,
                                                     int DD_OrderLine_ID,
                                                     String where,
                                                     String trxName)
        Get Movement lines Of Distribution Order Line
        Parameters:
        ctx - context
        DD_OrderLine_ID - line
        where - optional addition where clause
        trxName - transaction
        Returns:
        array of receipt lines
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class X_M_MovementLine
        Returns:
        String representation