Class MMovementLine

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

public class MMovementLine extends X_M_MovementLine
Inventory Movement Line Model
Version:
$Id: MMovementLine.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

    • m_parent

      protected MMovement m_parent
      Parent
  • Constructor Details

    • MMovementLine

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

      public MMovementLine(Properties ctx, int M_MovementLine_ID, String trxName)
      Standard Constructor
      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 Details

    • getM_AttributeSetInstanceTo_ID

      public int getM_AttributeSetInstanceTo_ID()
      Get AttributeSetInstance To
      Specified by:
      getM_AttributeSetInstanceTo_ID in interface I_M_MovementLine
      Overrides:
      getM_AttributeSetInstanceTo_ID in class X_M_MovementLine
      Returns:
      ASI
    • 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
    • setMovementQty

      public void setMovementQty(BigDecimal MovementQty)
      Set Movement Qty - enforce product UOM precision
      Specified by:
      setMovementQty in interface I_M_MovementLine
      Overrides:
      setMovementQty in class X_M_MovementLine
      Parameters:
      MovementQty - qty
    • getParent

      public MMovement getParent()
      get Parent
      Returns:
      Parent Movement
    • 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
    • beforeDelete

      protected boolean beforeDelete()
      Description copied from class: PO
      Execute before Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted
    • setOrderLine

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

      public void setM_Locator_ID(int M_Locator_ID)
      Set M_Locator_ID. Throw exception if M_Locator_ID < 0.
      Specified by:
      setM_Locator_ID in interface I_M_MovementLine
      Overrides:
      setM_Locator_ID in class X_M_MovementLine
      Parameters:
      M_Locator_ID - id
    • setM_LocatorTo_ID

      public void setM_LocatorTo_ID(int M_LocatorTo_ID)
      Set M_LocatorTo_ID. Throw exception if M_LocatorTo_ID < 0.
      Specified by:
      setM_LocatorTo_ID in interface I_M_MovementLine
      Overrides:
      setM_LocatorTo_ID in class X_M_MovementLine
      Parameters:
      M_LocatorTo_ID - id
    • getOfOrderLine

      @Deprecated public static MMovementLine[] getOfOrderLine(Properties ctx, int DD_OrderLine_ID, String where, String trxName)
      Deprecated.
      not fully implemented
      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