View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Add page
Show collection (0 pages)
Collections help


ERP/3.0/Developers Guide/Reference/Entity Model/MaterialMgmtProductionPlan

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers_Guide/Reference/Entity_Model#MaterialMgmtProductionPlan


Contains the items used and generated in a production

To the database table (M_ProductionPlan) of this entity.



Property Column Constraints Type Description
id* M_ProductionPlan_ID Mandatory
Max Length: 32
java.lang.String The Production Plan identifies the items and steps in generating a product.
client AD_Client_ID Mandatory
ADClient A Client is a company or a legal entity. You cannot share data between Clients.
organization AD_Org_ID Mandatory
Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
active IsActive Mandatory
java.lang.Boolean There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:

(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.

creationDate Created Mandatory
java.util.Date The Created field indicates the date that this record was created.
createdBy CreatedBy Mandatory
ADUser The Created By field indicates the user who created this record.
updated Updated Mandatory
java.util.Date The Updated field indicates the date that this record was updated.
updatedBy UpdatedBy Mandatory
ADUser The Updated By field indicates the user who updated this record.
production# M_Production_ID Mandatory
MaterialMgmtProductionTransaction The Production uniquely identifies a Production Plan
lineNo# Line Mandatory
java.lang.Long Indicates the unique line for a document. It will also control the display order of the lines within a document.
product M_Product_ID Product Identifies an item which is either purchased or sold in this organization.
productionQuantity ProductionQty Mandatory
java.math.BigDecimal The Production Quantity identifies the number of products to produce
storageBin M_Locator_ID Locator The Locator ID indicates where in a Warehouse a product is located.
description Description Max Length: 255
java.lang.String A description is limited to 255 characters.
conversionRate Conversionrate java.math.BigDecimal Defines how many final products each run of a process plan produces. See the following formula to understand the relation between the three elements:

Process Quantity = Quantity x Conversion Rate

costCenterUse MA_Costcenteruse java.math.BigDecimal Use of the cost center.
wRPhase MA_Wrphase_ID ManufacturingWorkRequirementOperation Indicates a Work Requirement Phase.
requiredQuantity Neededquantity java.math.BigDecimal How many times it is necessary to complete a phase before closing it.
processed Processed java.lang.Boolean The Processed checkbox indicates that a document has been processed.
rejectedQuantity Rejectedquantity java.math.BigDecimal How many products have been rejected.
processQuantity Secondaryqty java.math.BigDecimal The number of Process Units required to be produced. Usually when it comes to production, our requirements are specified by a number of final products (Process Units). To avoid the need for calculating the number of process plan runs, the system allows for entering this number and then automatically calculating the required process plan runs.
processUnit Secondaryunit Max Length: 40
java.lang.String The name of the main final product obtained by executing a process plan.
createStandards Usedmaterial java.lang.Boolean Process to generate standards on production run.
estimatedCost Calccost java.math.BigDecimal Is the calculated cost amount.
costCenterVersion MA_Costcenter_Version_ID ManufacturingCostcenterVersion Identifies a cost center version valid during a time period.
outsourced Outsourced java.lang.Boolean Indicates that the correspondent process is being outsourced for the sequence, work requirement phase or production run.
startingTime Starttime java.util.Date Start time in hours.
endingTime Endtime java.util.Date End time in hours.
estimatedTime Estimatedtime Mandatory
java.math.BigDecimal Estimated time for the operation
runTime Runtime Mandatory
java.lang.Long Operation run time
closephase Closephase Mandatory
java.lang.Boolean If is checked the work requirement phase will be closed when the work effort is validated
validateWorkEffort Validating java.lang.Boolean Process to validate the work effort.
productionplandate Productionplandate java.util.Date
manufacturingProductionLineList ManufacturingProductionLine
manufacturingProductionRunInvoiceLineList ManufacturingProductionRunInvoiceLine

Java Entity Class

  * The contents of this file are subject to the Openbravo  Public  License
  * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
  * Version 1.1  with a permitted attribution clause; you may not  use this
  * file except in compliance with the License. You  may  obtain  a copy of
  * the License at
  * Software distributed under the License  is  distributed  on  an "AS IS"
  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  * License for the specific  language  governing  rights  and  limitations
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
  * All portions are Copyright (C) 2008-2019 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
 package org.openbravo.model.materialmgmt.transaction;
 import java.math.BigDecimal;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 import org.openbravo.base.structure.ActiveEnabled;
 import org.openbravo.base.structure.BaseOBObject;
 import org.openbravo.base.structure.ClientEnabled;
 import org.openbravo.base.structure.OrganizationEnabled;
 import org.openbravo.base.structure.Traceable;
 import org.openbravo.model.common.enterprise.Locator;
 import org.openbravo.model.common.enterprise.Organization;
 import org.openbravo.model.common.plm.Product;
 import org.openbravo.model.manufacturing.cost.CostcenterVersion;
 import org.openbravo.model.manufacturing.transaction.ProductionRunInvoiceLine;
 import org.openbravo.model.manufacturing.transaction.WorkRequirementOperation;
  * Entity class for entity MaterialMgmtProductionPlan (stored in table M_ProductionPlan).
  * NOTE: This class should not be instantiated directly. To instantiate this
  * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 public class ProductionPlan extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
     private static final long serialVersionUID = 1L;
     public static final String TABLE_NAME = "M_ProductionPlan";
     public static final String ENTITY_NAME = "MaterialMgmtProductionPlan";
     public static final String PROPERTY_ID = "id";
     public static final String PROPERTY_CLIENT = "client";
     public static final String PROPERTY_ORGANIZATION = "organization";
     public static final String PROPERTY_ACTIVE = "active";
     public static final String PROPERTY_CREATIONDATE = "creationDate";
     public static final String PROPERTY_CREATEDBY = "createdBy";
     public static final String PROPERTY_UPDATED = "updated";
     public static final String PROPERTY_UPDATEDBY = "updatedBy";
     public static final String PROPERTY_PRODUCTION = "production";
     public static final String PROPERTY_LINENO = "lineNo";
     public static final String PROPERTY_PRODUCT = "product";
     public static final String PROPERTY_PRODUCTIONQUANTITY = "productionQuantity";
     public static final String PROPERTY_STORAGEBIN = "storageBin";
     public static final String PROPERTY_DESCRIPTION = "description";
     public static final String PROPERTY_CONVERSIONRATE = "conversionRate";
     public static final String PROPERTY_COSTCENTERUSE = "costCenterUse";
     public static final String PROPERTY_WRPHASE = "wRPhase";
     public static final String PROPERTY_REQUIREDQUANTITY = "requiredQuantity";
     public static final String PROPERTY_PROCESSED = "processed";
     public static final String PROPERTY_REJECTEDQUANTITY = "rejectedQuantity";
     public static final String PROPERTY_PROCESSQUANTITY = "processQuantity";
     public static final String PROPERTY_PROCESSUNIT = "processUnit";
     public static final String PROPERTY_CREATESTANDARDS = "createStandards";
     public static final String PROPERTY_ESTIMATEDCOST = "estimatedCost";
     public static final String PROPERTY_COSTCENTERVERSION = "costCenterVersion";
     public static final String PROPERTY_OUTSOURCED = "outsourced";
     public static final String PROPERTY_STARTINGTIME = "startingTime";
     public static final String PROPERTY_ENDINGTIME = "endingTime";
     public static final String PROPERTY_ESTIMATEDTIME = "estimatedTime";
     public static final String PROPERTY_RUNTIME = "runTime";
     public static final String PROPERTY_CLOSEPHASE = "closephase";
     public static final String PROPERTY_VALIDATEWORKEFFORT = "validateWorkEffort";
     public static final String PROPERTY_PRODUCTIONPLANDATE = "productionplandate";
     public static final String PROPERTY_MANUFACTURINGPRODUCTIONLINELIST = "manufacturingProductionLineList";
     public static final String PROPERTY_MANUFACTURINGPRODUCTIONRUNINVOICELINELIST = "manufacturingProductionRunInvoiceLineList";
     public ProductionPlan() {
         setDefaultValue(PROPERTY_ACTIVE, true);
         setDefaultValue(PROPERTY_PROCESSED, false);
         setDefaultValue(PROPERTY_CREATESTANDARDS, false);
         setDefaultValue(PROPERTY_OUTSOURCED, false);
         setDefaultValue(PROPERTY_ESTIMATEDTIME, new BigDecimal(0));
         setDefaultValue(PROPERTY_RUNTIME, (long) 0);
         setDefaultValue(PROPERTY_CLOSEPHASE, false);
         setDefaultValue(PROPERTY_VALIDATEWORKEFFORT, false);
         setDefaultValue(PROPERTY_MANUFACTURINGPRODUCTIONLINELIST, new ArrayList<Object>());
     public String getEntityName() {
         return ENTITY_NAME;
     public String getId() {
         return (String) get(PROPERTY_ID);
     public void setId(String id) {
         set(PROPERTY_ID, id);
     public Client getClient() {
         return (Client) get(PROPERTY_CLIENT);
     public void setClient(Client client) {
         set(PROPERTY_CLIENT, client);
     public Organization getOrganization() {
         return (Organization) get(PROPERTY_ORGANIZATION);
     public void setOrganization(Organization organization) {
         set(PROPERTY_ORGANIZATION, organization);
     public Boolean isActive() {
         return (Boolean) get(PROPERTY_ACTIVE);
     public void setActive(Boolean active) {
         set(PROPERTY_ACTIVE, active);
     public Date getCreationDate() {
         return (Date) get(PROPERTY_CREATIONDATE);
     public void setCreationDate(Date creationDate) {
         set(PROPERTY_CREATIONDATE, creationDate);
     public User getCreatedBy() {
         return (User) get(PROPERTY_CREATEDBY);
     public void setCreatedBy(User createdBy) {
         set(PROPERTY_CREATEDBY, createdBy);
     public Date getUpdated() {
         return (Date) get(PROPERTY_UPDATED);
     public void setUpdated(Date updated) {
         set(PROPERTY_UPDATED, updated);
     public User getUpdatedBy() {
         return (User) get(PROPERTY_UPDATEDBY);
     public void setUpdatedBy(User updatedBy) {
         set(PROPERTY_UPDATEDBY, updatedBy);
     public ProductionTransaction getProduction() {
         return (ProductionTransaction) get(PROPERTY_PRODUCTION);
     public void setProduction(ProductionTransaction production) {
         set(PROPERTY_PRODUCTION, production);
     public Long getLineNo() {
         return (Long) get(PROPERTY_LINENO);
     public void setLineNo(Long lineNo) {
         set(PROPERTY_LINENO, lineNo);
     public Product getProduct() {
         return (Product) get(PROPERTY_PRODUCT);
     public void setProduct(Product product) {
         set(PROPERTY_PRODUCT, product);
     public BigDecimal getProductionQuantity() {
         return (BigDecimal) get(PROPERTY_PRODUCTIONQUANTITY);
     public void setProductionQuantity(BigDecimal productionQuantity) {
         set(PROPERTY_PRODUCTIONQUANTITY, productionQuantity);
     public Locator getStorageBin() {
         return (Locator) get(PROPERTY_STORAGEBIN);
     public void setStorageBin(Locator storageBin) {
         set(PROPERTY_STORAGEBIN, storageBin);
     public String getDescription() {
         return (String) get(PROPERTY_DESCRIPTION);
     public void setDescription(String description) {
         set(PROPERTY_DESCRIPTION, description);
     public BigDecimal getConversionRate() {
         return (BigDecimal) get(PROPERTY_CONVERSIONRATE);
     public void setConversionRate(BigDecimal conversionRate) {
         set(PROPERTY_CONVERSIONRATE, conversionRate);
     public BigDecimal getCostCenterUse() {
         return (BigDecimal) get(PROPERTY_COSTCENTERUSE);
     public void setCostCenterUse(BigDecimal costCenterUse) {
         set(PROPERTY_COSTCENTERUSE, costCenterUse);
     public WorkRequirementOperation getWRPhase() {
         return (WorkRequirementOperation) get(PROPERTY_WRPHASE);
     public void setWRPhase(WorkRequirementOperation wRPhase) {
         set(PROPERTY_WRPHASE, wRPhase);
     public BigDecimal getRequiredQuantity() {
         return (BigDecimal) get(PROPERTY_REQUIREDQUANTITY);
     public void setRequiredQuantity(BigDecimal requiredQuantity) {
         set(PROPERTY_REQUIREDQUANTITY, requiredQuantity);
     public Boolean isProcessed() {
         return (Boolean) get(PROPERTY_PROCESSED);
     public void setProcessed(Boolean processed) {
         set(PROPERTY_PROCESSED, processed);
     public BigDecimal getRejectedQuantity() {
         return (BigDecimal) get(PROPERTY_REJECTEDQUANTITY);
     public void setRejectedQuantity(BigDecimal rejectedQuantity) {
         set(PROPERTY_REJECTEDQUANTITY, rejectedQuantity);
     public BigDecimal getProcessQuantity() {
         return (BigDecimal) get(PROPERTY_PROCESSQUANTITY);
     public void setProcessQuantity(BigDecimal processQuantity) {
         set(PROPERTY_PROCESSQUANTITY, processQuantity);
     public String getProcessUnit() {
         return (String) get(PROPERTY_PROCESSUNIT);
     public void setProcessUnit(String processUnit) {
         set(PROPERTY_PROCESSUNIT, processUnit);
     public Boolean isCreateStandards() {
         return (Boolean) get(PROPERTY_CREATESTANDARDS);
     public void setCreateStandards(Boolean createStandards) {
         set(PROPERTY_CREATESTANDARDS, createStandards);
     public BigDecimal getEstimatedCost() {
         return (BigDecimal) get(PROPERTY_ESTIMATEDCOST);
     public void setEstimatedCost(BigDecimal estimatedCost) {
         set(PROPERTY_ESTIMATEDCOST, estimatedCost);
     public CostcenterVersion getCostCenterVersion() {
         return (CostcenterVersion) get(PROPERTY_COSTCENTERVERSION);
     public void setCostCenterVersion(CostcenterVersion costCenterVersion) {
         set(PROPERTY_COSTCENTERVERSION, costCenterVersion);
     public Boolean isOutsourced() {
         return (Boolean) get(PROPERTY_OUTSOURCED);
     public void setOutsourced(Boolean outsourced) {
         set(PROPERTY_OUTSOURCED, outsourced);
     public Date getStartingTime() {
         return (Date) get(PROPERTY_STARTINGTIME);
     public void setStartingTime(Date startingTime) {
         set(PROPERTY_STARTINGTIME, startingTime);
     public Date getEndingTime() {
         return (Date) get(PROPERTY_ENDINGTIME);
     public void setEndingTime(Date endingTime) {
         set(PROPERTY_ENDINGTIME, endingTime);
     public BigDecimal getEstimatedTime() {
         return (BigDecimal) get(PROPERTY_ESTIMATEDTIME);
     public void setEstimatedTime(BigDecimal estimatedTime) {
         set(PROPERTY_ESTIMATEDTIME, estimatedTime);
     public Long getRunTime() {
         return (Long) get(PROPERTY_RUNTIME);
     public void setRunTime(Long runTime) {
         set(PROPERTY_RUNTIME, runTime);
     public Boolean isClosephase() {
         return (Boolean) get(PROPERTY_CLOSEPHASE);
     public void setClosephase(Boolean closephase) {
         set(PROPERTY_CLOSEPHASE, closephase);
     public Boolean isValidateWorkEffort() {
         return (Boolean) get(PROPERTY_VALIDATEWORKEFFORT);
     public void setValidateWorkEffort(Boolean validateWorkEffort) {
         set(PROPERTY_VALIDATEWORKEFFORT, validateWorkEffort);
     public Date getProductionplandate() {
         return (Date) get(PROPERTY_PRODUCTIONPLANDATE);
     public void setProductionplandate(Date productionplandate) {
         set(PROPERTY_PRODUCTIONPLANDATE, productionplandate);
     public List<ProductionLine> getManufacturingProductionLineList() {
     public void setManufacturingProductionLineList(List<ProductionLine> manufacturingProductionLineList) {
         set(PROPERTY_MANUFACTURINGPRODUCTIONLINELIST, manufacturingProductionLineList);
     public List<ProductionRunInvoiceLine> getManufacturingProductionRunInvoiceLineList() {
     public void setManufacturingProductionRunInvoiceLineList(List<ProductionRunInvoiceLine> manufacturingProductionRunInvoiceLineList) {
         set(PROPERTY_MANUFACTURINGPRODUCTIONRUNINVOICELINELIST, manufacturingProductionRunInvoiceLineList);

Retrieved from ""

This page has been accessed 1,129 times. This page was last modified on 8 July 2019, at 01:49. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.