Class MInOutLineMA

    • Constructor Detail

      • MInOutLineMA

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

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

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

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

      • get

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

        public static int deleteInOutMA​(int M_InOut_ID,
                                        String trxName)
        Delete all Material Allocation for InOut
        Parameters:
        M_InOut_ID - shipment
        trxName - transaction
        Returns:
        number of rows deleted or -1 for error
      • deleteInOutLineMA

        public static int deleteInOutLineMA​(int M_InOutLine_ID,
                                            String trxName)
        Delete all Material Allocation for InOutLine
        Parameters:
        M_InOutLine_ID - Shipment Line
        trxName - transaction
        Returns:
        number of rows deleted or -1 for error
      • getManualQty

        public static BigDecimal getManualQty​(int M_InOutLine_ID,
                                              String trxName)
        Total qty on LineMA for M_InoutLine
        Parameters:
        M_InOutLine_ID -
        trxName -
        Returns:
      • getNonReturned

        public static MInOutLineMA[] getNonReturned​(Properties ctx,
                                                    int M_InOutLine_ID,
                                                    String trxName)
        Get Material Allocations from shipment which is not returned
        Parameters:
        ctx - context
        M_InOutLine_ID - line
        trxName - trx
        Returns:
        allocations
      • beforeSave

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