Class MInventoryLineMA

    • Constructor Detail

      • MInventoryLineMA

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

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

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

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

      • get

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

        public static int deleteInventoryMA​(int M_Inventory_ID,
                                            String trxName)
        Delete all Material Allocation for Inventory
        Parameters:
        M_Inventory_ID - inventory
        trxName - transaction
        Returns:
        number of rows deleted or -1 for error
      • deleteInventoryLineMA

        public static int deleteInventoryLineMA​(int M_InventoryLine_ID,
                                                String trxName)
        Delete all Material Allocation for Inventory
        Parameters:
        M_InventoryLine_ID - inventory
        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