Class MPPProductPlanning

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_Persistent, Evaluatee, I_PP_Product_Planning

public class MPPProductPlanning extends X_PP_Product_Planning
Product Data Planning
Author:
Victor Perez www.e-evolution.com, Teo Sarca, www.arhipac.ro
See Also:
  • Constructor Details

    • MPPProductPlanning

      public MPPProductPlanning(Properties ctx, String PP_Product_Planning_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      PP_Product_Planning_UU - UUID key
      trxName - Transaction
    • 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
    • MPPProductPlanning

      public MPPProductPlanning(Properties ctx, int PP_Product_Planning_ID, String trxName, String... virtualColumns)
  • Method Details

    • 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.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved
    • getPP_Product_BOM

      public MPPProductBOM getPP_Product_BOM()
      Specified by:
      getPP_Product_BOM in interface I_PP_Product_Planning
      Overrides:
      getPP_Product_BOM in class X_PP_Product_Planning
    • getAD_Workflow

      public MWorkflow getAD_Workflow()
      Specified by:
      getAD_Workflow in interface I_PP_Product_Planning
      Overrides:
      getAD_Workflow in class X_PP_Product_Planning
    • getS_Resource

      public MResource getS_Resource()
      Specified by:
      getS_Resource in interface I_PP_Product_Planning
      Overrides:
      getS_Resource in class X_PP_Product_Planning
    • 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 (with log level finest) where clause and column values
      Overrides:
      dump in class PO