Class MPPProductPlanning

    • Constructor Detail

      • MPPProductPlanning

        public MPPProductPlanning​(Properties ctx,
                                  int pp_product_planning_id,
                                  String trxname)
        Default Constructor
        Parameters:
        ctx - context
        pp_product_planning_id - id
        trxname -
      • MPPProductPlanning

        public MPPProductPlanning​(Properties ctx,
                                  ResultSet rs,
                                  String trxname)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxname - Transaction Name
    • Method Detail

      • get

        public static MPPProductPlanning get​(Properties ctx,
                                             int ad_client_id,
                                             int ad_org_id,
                                             int m_product_id,
                                             String trxName)
        Get Data Product Planning to Organization
        Parameters:
        ctx - Context
        ad_org_id - Organization ID
        m_product_id - Product ID
        trxName - Transaction Name
        Returns:
        MPPProductPlanning
      • get

        public static MPPProductPlanning get​(Properties ctx,
                                             int ad_client_id,
                                             int ad_org_id,
                                             int m_warehouse_id,
                                             int s_resource_id,
                                             int m_product_id,
                                             String trxname)
        Get Data Product Planning
        Parameters:
        ctx - Context
        ad_client_id - ID Organization
        ad_org_id - ID Organization
        m_warehouse_id - Warehouse
        s_resource_id - Resource type Plant
        m_product_id - ID Product
        trxname - Trx Name
        Returns:
        MPPProductPlanning
      • find

        public static MPPProductPlanning find​(Properties ctx,
                                              int AD_Org_ID,
                                              int M_Warehouse_ID,
                                              int S_Resource_ID,
                                              int M_Product_ID,
                                              String trxName)
        Find data planning, try find the specific planning data if do not found then try find data planning general
        Parameters:
        ctx - Context
        AD_Org_ID - Organization ID
        M_Warehouse_ID - Resource ID
        S_Resource_ID - Resource ID
        M_Product_ID - Product ID
        trxName - Transaction Name
        Returns:
        MPPProductPlanning Planning Data
      • getPlantForWarehouse

        public static int getPlantForWarehouse​(int M_Warehouse_ID)
        Get plant resource for warehouse. If more than one resource is found, first will be used.
        Parameters:
        M_Warehouse_ID -
        Returns:
        Plant_ID (S_Resource_ID)
      • 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
      • setC_BPartner_ID

        public void setC_BPartner_ID​(int C_BPartner_ID)
        Set Supplier
        Parameters:
        C_BPartner_ID -
      • getC_BPartner_ID

        public int getC_BPartner_ID()
        Returns:
        Supplier
      • dump

        public void dump()
        Description copied from class: PO
        Dump Record
        Overrides:
        dump in class PO