Class MMovementLineMA

    • Constructor Detail

      • MMovementLineMA

        public MMovementLineMA​(Properties ctx,
                               int M_MovementLineMA_ID,
                               String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_MovementLineMA_ID - ignored
        trxName - trx
      • MMovementLineMA

        public MMovementLineMA​(Properties ctx,
                               ResultSet rs,
                               String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result ser
        trxName - trx
      • MMovementLineMA

        public MMovementLineMA​(MMovementLine parent,
                               int M_AttributeSetInstance_ID,
                               BigDecimal MovementQty,
                               Timestamp DateMaterialPolicy)
        Parent Constructor
        Parameters:
        parent - parent
        M_AttributeSetInstance_ID - asi
        MovementQty - qty
        DateMaterialPolicy -
      • MMovementLineMA

        public MMovementLineMA​(MMovementLine parent,
                               int M_AttributeSetInstance_ID,
                               BigDecimal MovementQty,
                               Timestamp DateMaterialPolicy,
                               boolean isAutoGenerated)
        Parameters:
        parent -
        M_AttributeSetInstance_ID -
        MovementQty -
        DateMaterialPolicy -
        isAutoGenerated -
    • Method Detail

      • get

        public static MMovementLineMA[] get​(Properties ctx,
                                            int M_MovementLine_ID,
                                            String trxName)
        Get Material Allocations for Line
        Parameters:
        ctx - context
        M_MovementLine_ID - line
        trxName - trx
        Returns:
        allocations
      • deleteMovementMA

        public static int deleteMovementMA​(int M_Movement_ID,
                                           String trxName)
        Delete all Material Allocation for Movement
        Parameters:
        M_Movement_ID - movement
        trxName - transaction
        Returns:
        number of rows deleted or -1 for error
      • deleteMovementLineMA

        public static int deleteMovementLineMA​(int M_MovementLine_ID,
                                               String trxName)
        Delete all Material Allocation for Movement Line
        Parameters:
        M_MovementLine_ID - movement line
        trxName - transaction
        Returns:
        number of rows deleted or -1 for error
      • getManualQty

        public static BigDecimal getManualQty​(int M_MovementLine_ID,
                                              String trxName)
        Parameters:
        M_MovementLine_ID -
        trxName -
        Returns:
      • beforeSave

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