Class MPPProductBOM

    • Method Detail

      • isProductMakeToOrder

        public static boolean isProductMakeToOrder​(Properties ctx,
                                                   int productId,
                                                   String trxName)
        Is Product Make to Order
        Parameters:
        ctx -
        productId -
        trxName -
        Returns:
      • getProductBOMs

        public static List<MPPProductBOM> getProductBOMs​(MProduct product)
        get the Product BOM for a product
        Parameters:
        product -
        Returns:
        return List with MPPProductBOM
      • get

        public static MPPProductBOM get​(int PP_Product_BOM_ID)
        Get Product BOM by ID (cached) (immutable)
        Parameters:
        PP_Product_BOM_ID -
        Returns:
        product bom
      • get

        public static MPPProductBOM get​(Properties ctx,
                                        int PP_Product_BOM_ID)
        Get Product BOM by ID (cached) (immutable)
        Parameters:
        ctx -
        PP_Product_BOM_ID -
        Returns:
        product bom
      • getCopy

        public static MPPProductBOM getCopy​(Properties ctx,
                                            int PP_Product_BOM_ID,
                                            String trxName)
        Get updateable copy of MPPProductBOM from cache
        Parameters:
        ctx -
        PP_Product_BOM_ID -
        trxName -
        Returns:
        MPPProductBOM
      • getBOMSearchKey

        public static int getBOMSearchKey​(MProduct product)
        Get PP_Product_BOM_ID for given M_Product_ID
        Parameters:
        product -
        Returns:
        PP_Product_BOM_ID
      • getDefault

        public static MPPProductBOM getDefault​(MProduct product,
                                               String trxName)
        Get BOM with Default Logic (Product = BOM Product and BOM Value = Product Value)
        Parameters:
        product -
        trxName -
        Returns:
        product BOM
      • get

        public static MPPProductBOM get​(MProduct product,
                                        int ad_org_id,
                                        String trxName)
        Get BOM for Product
        Parameters:
        product - product
        ad_org_id - Organization ID
        trxName - Transaction Name
        Returns:
        BOM
      • get

        public static MPPProductBOM get​(MProduct product,
                                        int ad_org_id,
                                        Timestamp valid,
                                        String trxName)
        Get BOM with valid dates for Product
        Parameters:
        product - product
        ad_org_id - Organization ID
        valid - Date to Validate
        trxName - Transaction Name
        Returns:
        BOM
      • getLines

        public MPPProductBOMLine[] getLines​(Timestamp valid)
        Get BOM Lines valid date for Product BOM
        Parameters:
        valid - Date to Validate
        Returns:
        BOM Lines
      • getLines

        public MPPProductBOMLine[] getLines()
        Get BOM Lines for Product BOM from cache
        Returns:
        BOM Lines
      • getLines

        public MPPProductBOMLine[] getLines​(boolean reload)
        Get BOM Lines for Product BOM
        Returns:
        BOM Lines
      • isValidFromTo

        public boolean isValidFromTo​(Timestamp date)
      • afterDelete

        protected boolean afterDelete​(boolean success)
        Description copied from class: PO
        Executed after Delete operation.
        Overrides:
        afterDelete in class PO
        Parameters:
        success - true if record deleted
        Returns:
        true if delete is a success
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success
      • toString

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