View source | Discuss this page | Page history | Printable version   

ERP 2.50:Developers Guide/Reference/Entity Model/Product

Product

Defines each product and identifies it for use in price lists and orders. The Location is the default location when receiving the stored products.

To the database table (M_Product) of this entity.

Back to the entity model.

Properties

Note:

Property Column Constraints Type Description
id* M_Product_ID Mandatory
Max Length: 32
java.lang.String Identifies an item which is either purchased or sold in this organization.
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.
searchKey Value Mandatory
Max Length: 40
java.lang.String A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).

Usually, company's internal identifiers for various records (products, customers, etc) are stored here.

name# Name Mandatory
Max Length: 60
java.lang.String A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.
description Description Max Length: 255 java.lang.String A description is limited to 255 characters.
comments DocumentNote Max Length: 2000 java.lang.String The Document Note is used for recording any additional information regarding this product.
helpComment Help Max Length: 2000 java.lang.String The Help field contains a hint, comment or help about the use of this item.
uPCEAN UPC Max Length: 30 java.lang.String Use this field to enter the bar code for the product in any of the bar code symbologies (Codabar, Code 25, Code 39, Code 93, Code 128, UPC (A), UPC (E), EAN-13, EAN-8, ITF, ITF-14, ISBN, ISSN, JAN-13, JAN-8, POSTNET and FIM, MSI/Plessey, and Pharmacode)
sKU SKU Max Length: 30 java.lang.String The SKU indicates a user defined stock keeping unit. It may be used for an additional bar code symbols or your own schema.
uOM C_UOM_ID Mandatory UOM The UOM defines a unique non monetary unit of measure
salesRepresentative SalesRep_ID ADUser Indicates the sales representative responsible for the transaction that the document specifies . A valid sales representative is a business partner marked as an employee and a sales representative.
summaryLevel IsSummary Mandatory java.lang.Boolean A summary entity represents a branch in a tree rather than an end-node. Summary entities are used for reporting and do not have own values.
stocked IsStocked Mandatory java.lang.Boolean The Stocked check box indicates if this product is stocked by this Organization.
purchase IsPurchased Mandatory java.lang.Boolean The Purchased check box indicates if this product is purchased by this organization.
sale IsSold Mandatory java.lang.Boolean The Sold check box indicates if this product is sold by this organization.
billOfMaterials IsBOM Mandatory java.lang.Boolean The Bill of Materials check box indicates if this product consists of a bill of materials.
printDetailsOnInvoice IsInvoicePrintDetails Mandatory java.lang.Boolean If “Print Details on Invoice” is checked then the details of the individual elements of the BOM will be printed on the Invoice.
printDetailsOnPickList IsPickListPrintDetails Mandatory java.lang.Boolean The Print Details on Pick List indicates that the BOM element products will print on the Pick List as opposed to this product.
bOMVerified IsVerified Mandatory java.lang.Boolean Indicates if the bill of materials tree of this product has been verified. Verification involves a test for cycles within a tree so that there are no infinite loops.
productCategory M_Product_Category_ID Mandatory ProductCategory Identifies the category which this product belongs to. Product categories are used for pricing.
classification Classification Max Length: 1 java.lang.String The Classification can be used to optionally group products.
volume Volume java.math.BigDecimal The Volume indicates the volume of the product in the Volume UOM of the Client
weight Weight java.math.BigDecimal The Weight indicates the weight of the product in the Weight UOM of the Client
shelfWidth ShelfWidth java.math.BigDecimal The Shelf Width indicates the width dimension required on a shelf for a product
shelfHeight ShelfHeight java.math.BigDecimal The Shelf Height indicates the height dimension required on a shelf for a product
shelfDepth ShelfDepth java.math.BigDecimal The Shelf Depth indicates the depth dimension required on a shelf for a product
unitsPerPallet UnitsPerPallet java.lang.Long The Units per Pallet indicates the number of units of this product which fit on a pallet.
taxCategory C_TaxCategory_ID Mandatory FinancialMgmtTaxCategory The Tax Category provides a method of grouping similar taxes. For example, Sales Tax or Value Added Tax.
resource S_Resource_ID Resource The ID identifies a unique resource
discontinued Discontinued java.lang.Boolean The Discontinued check box indicates a product that has been discontinued.
discontinuedBy DiscontinuedBy java.util.Date The Discontinued By indicates the individual who discontinued this product
processNow Processing Mandatory java.lang.Boolean When this field is set as 'Y' a process is being performed on this record.
expenseType S_ExpenseType_ID ExpenseType Expense report type
productType ProductType Mandatory
Max Length: 60
java.lang.String The type of product also determines accounting consequences.
imageURL ImageURL Max Length: 120 java.lang.String URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.
descriptionURL DescriptionURL Max Length: 120 java.lang.String URL for the description
guaranteedDays GuaranteeDays java.lang.Long If the value is 0, there is no limit to the availability or guarantee, otherwise the guarantee date is calculated by adding the days to the delivery date.
versionNo VersionNo Max Length: 20 java.lang.String Version Number
attributeSet M_AttributeSet_ID AttributeSet Define Product Attribute Sets to add additional attributes and values to the product. You need to define a Attribute Set if you want to enable Serial and Lot Number tracking.
attributeSetValue M_AttributeSetInstance_ID AttributeSetInstance The values of the actual Product Attributes
downloadURL DownloadURL Max Length: 120 java.lang.String Semicolon separated list of URLs to be downloaded or distributed
freightCategory M_FreightCategory_ID ShippingFreightCategory Freight Categories are used to calculate the Freight for the Shipper selected
storageBin M_Locator_ID Locator The Locator ID indicates where in a Warehouse a product is located.
image AD_Image_ID ADImage Defines a system image
businessPartner C_BPartner_ID BusinessPartner A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.
printPrice Ispriceprinted java.lang.Boolean It allows you to print or not the price of a product in a document so you can summary many products in just one.
name2 Name2 Max Length: 60 java.lang.String Additional Name
costType Costtype Max Length: 60 java.lang.String Different types of cost
standardCost Coststd java.math.BigDecimal The value of the standard cost
minimumStock Stock_Min java.math.BigDecimal Minimum stock of a product
enforceAttribute Enforce_Attribute java.lang.Boolean For differing the stock of a product by the attribute
calculated Calculated Mandatory java.lang.Boolean Indicates that the record has been calculated.
processPlan MA_Processplan_ID ManufacturingProcessPlan Indicates a process plan.
production Production Mandatory java.lang.Boolean A product that is used for production plans
capacity Capacity java.math.BigDecimal Capacity per day
minimumLeadTime Delaymin java.math.BigDecimal Minimum number of days to complete the transaction
planner MRP_Planner_ID MRPPlanner Identifies a planner of the MRP.
planningMethod MRP_Planningmethod_ID MRPPlanningMethod Identifies a method for filtering the input for planning processes.
maxQuantity Qtymax java.math.BigDecimal Maximum Quantity
minQuantity Qtymin java.math.BigDecimal Minumun Quantity.
standardQuantity Qtystd java.math.BigDecimal Quantity Standard
quantityType Qtytype java.lang.Boolean Quantity Type
safetyStock Stockmin java.math.BigDecimal Safety Stock
useAttributeSetValueAs Attrsetvaluetype Max Length: 60 java.lang.String Permits to define different types of Attribute Set Values, depending on their usage.
productBOMList List of ProductBOM
productTrlList List of ProductTrl
productOrgList List of ProductOrg
approvedVendorList List of ApprovedVendor
replenishList List of Replenish
materialMgmtCostingList List of MaterialMgmtCosting
productCustomerList List of ProductCustomer
pricingProductPriceList List of PricingProductPrice
productAccountsList List of ProductAccounts
productUOMList List of ProductUOM
productSubstituteList List of ProductSubstitute

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 http://www.openbravo.com/legal/license.html
 * 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-2010 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package org.openbravo.model.common.plm;
 
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.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.ad.utility.Image;
import org.openbravo.model.common.businesspartner.BusinessPartner;
import org.openbravo.model.common.enterprise.Locator;
import org.openbravo.model.common.enterprise.Organization;
import org.openbravo.model.financialmgmt.tax.TaxCategory;
import org.openbravo.model.manufacturing.processplan.ProcessPlan;
import org.openbravo.model.materialmgmt.cost.Costing;
import org.openbravo.model.mrp.Planner;
import org.openbravo.model.mrp.PlanningMethod;
import org.openbravo.model.pricing.pricelist.ProductPrice;
import org.openbravo.model.shipping.FreightCategory;
import org.openbravo.model.timeandexpense.ExpenseType;
import org.openbravo.model.timeandexpense.Resource;
 
import java.lang.Boolean;
import java.lang.Long;
import java.lang.String;
 
import java.math.BigDecimal;
 
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
 
/**
 * Entity class for entity Product (stored in table M_Product).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class Product extends BaseOBObject implements Traceable, ClientEnabled,
    OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "M_Product";
    public static final String Product = "Product";
    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_SEARCHKEY = "searchKey";
    public static final String PROPERTY_NAME = "name";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_COMMENTS = "comments";
    public static final String PROPERTY_HELPCOMMENT = "helpComment";
    public static final String PROPERTY_UPCEAN = "uPCEAN";
    public static final String PROPERTY_SKU = "sKU";
    public static final String PROPERTY_UOM = "uOM";
    public static final String PROPERTY_SALESREPRESENTATIVE =
        "salesRepresentative";
    public static final String PROPERTY_SUMMARYLEVEL = "summaryLevel";
    public static final String PROPERTY_STOCKED = "stocked";
    public static final String PROPERTY_PURCHASE = "purchase";
    public static final String PROPERTY_SALE = "sale";
    public static final String PROPERTY_BILLOFMATERIALS = "billOfMaterials";
    public static final String PROPERTY_PRINTDETAILSONINVOICE =
        "printDetailsOnInvoice";
    public static final String PROPERTY_PRINTDETAILSONPICKLIST =
        "printDetailsOnPickList";
    public static final String PROPERTY_BOMVERIFIED = "bOMVerified";
    public static final String PROPERTY_PRODUCTCATEGORY = "productCategory";
    public static final String PROPERTY_CLASSIFICATION = "classification";
    public static final String PROPERTY_VOLUME = "volume";
    public static final String PROPERTY_WEIGHT = "weight";
    public static final String PROPERTY_SHELFWIDTH = "shelfWidth";
    public static final String PROPERTY_SHELFHEIGHT = "shelfHeight";
    public static final String PROPERTY_SHELFDEPTH = "shelfDepth";
    public static final String PROPERTY_UNITSPERPALLET = "unitsPerPallet";
    public static final String PROPERTY_TAXCATEGORY = "taxCategory";
    public static final String PROPERTY_RESOURCE = "resource";
    public static final String PROPERTY_DISCONTINUED = "discontinued";
    public static final String PROPERTY_DISCONTINUEDBY = "discontinuedBy";
    public static final String PROPERTY_PROCESSNOW = "processNow";
    public static final String PROPERTY_EXPENSETYPE = "expenseType";
    public static final String PROPERTY_PRODUCTTYPE = "productType";
    public static final String PROPERTY_IMAGEURL = "imageURL";
    public static final String PROPERTY_DESCRIPTIONURL = "descriptionURL";
    public static final String PROPERTY_GUARANTEEDDAYS = "guaranteedDays";
    public static final String PROPERTY_VERSIONNO = "versionNo";
    public static final String PROPERTY_ATTRIBUTESET = "attributeSet";
    public static final String PROPERTY_ATTRIBUTESETVALUE = "attributeSetValue";
    public static final String PROPERTY_DOWNLOADURL = "downloadURL";
    public static final String PROPERTY_FREIGHTCATEGORY = "freightCategory";
    public static final String PROPERTY_STORAGEBIN = "storageBin";
    public static final String PROPERTY_IMAGE = "image";
    public static final String PROPERTY_BUSINESSPARTNER = "businessPartner";
    public static final String PROPERTY_PRINTPRICE = "printPrice";
    public static final String PROPERTY_NAME2 = "name2";
    public static final String PROPERTY_COSTTYPE = "costType";
    public static final String PROPERTY_STANDARDCOST = "standardCost";
    public static final String PROPERTY_MINIMUMSTOCK = "minimumStock";
    public static final String PROPERTY_ENFORCEATTRIBUTE = "enforceAttribute";
    public static final String PROPERTY_CALCULATED = "calculated";
    public static final String PROPERTY_PROCESSPLAN = "processPlan";
    public static final String PROPERTY_PRODUCTION = "production";
    public static final String PROPERTY_CAPACITY = "capacity";
    public static final String PROPERTY_MINIMUMLEADTIME = "minimumLeadTime";
    public static final String PROPERTY_PLANNER = "planner";
    public static final String PROPERTY_PLANNINGMETHOD = "planningMethod";
    public static final String PROPERTY_MAXQUANTITY = "maxQuantity";
    public static final String PROPERTY_MINQUANTITY = "minQuantity";
    public static final String PROPERTY_STANDARDQUANTITY = "standardQuantity";
    public static final String PROPERTY_QUANTITYTYPE = "quantityType";
    public static final String PROPERTY_SAFETYSTOCK = "safetyStock";
    public static final String PROPERTY_USEATTRIBUTESETVALUEAS =
        "useAttributeSetValueAs";
    public static final String PROPERTY_PRODUCTBOMLIST = "productBOMList";
    public static final String PROPERTY_PRODUCTTRLLIST = "productTrlList";
    public static final String PROPERTY_PRODUCTORGLIST = "productOrgList";
    public static final String PROPERTY_APPROVEDVENDORLIST =
        "approvedVendorList";
    public static final String PROPERTY_REPLENISHLIST = "replenishList";
    public static final String PROPERTY_MATERIALMGMTCOSTINGLIST =
        "materialMgmtCostingList";
    public static final String PROPERTY_PRODUCTCUSTOMERLIST =
        "productCustomerList";
    public static final String PROPERTY_PRICINGPRODUCTPRICELIST =
        "pricingProductPriceList";
    public static final String PROPERTY_PRODUCTACCOUNTSLIST =
        "productAccountsList";
    public static final String PROPERTY_PRODUCTUOMLIST = "productUOMList";
    public static final String PROPERTY_PRODUCTSUBSTITUTELIST =
        "productSubstituteList";
 
    public Product() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_SUMMARYLEVEL, false);
        setDefaultValue(PROPERTY_STOCKED, true);
        setDefaultValue(PROPERTY_PURCHASE, true);
        setDefaultValue(PROPERTY_SALE, true);
        setDefaultValue(PROPERTY_BILLOFMATERIALS, false);
        setDefaultValue(PROPERTY_PRINTDETAILSONINVOICE, false);
        setDefaultValue(PROPERTY_PRINTDETAILSONPICKLIST, false);
        setDefaultValue(PROPERTY_BOMVERIFIED, false);
        setDefaultValue(PROPERTY_DISCONTINUED, false);
        setDefaultValue(PROPERTY_PROCESSNOW, false);
        setDefaultValue(PROPERTY_PRODUCTTYPE, "I");
        setDefaultValue(PROPERTY_IMAGEURL, "800011");
        setDefaultValue(PROPERTY_PRINTPRICE, true);
        setDefaultValue(PROPERTY_ENFORCEATTRIBUTE, false);
        setDefaultValue(PROPERTY_CALCULATED, false);
        setDefaultValue(PROPERTY_PRODUCTION, false);
        setDefaultValue(PROPERTY_QUANTITYTYPE, false);
        setDefaultValue(PROPERTY_PRODUCTBOMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_PRODUCTTRLLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_PRODUCTORGLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_APPROVEDVENDORLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_REPLENISHLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_MATERIALMGMTCOSTINGLIST,
            new ArrayList<Object>());
        setDefaultValue(PROPERTY_PRODUCTCUSTOMERLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_PRICINGPRODUCTPRICELIST,
            new ArrayList<Object>());
        setDefaultValue(PROPERTY_PRODUCTACCOUNTSLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_PRODUCTUOMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_PRODUCTSUBSTITUTELIST, new ArrayList<Object>());
    }
 
    @Override
    public String getEntityName() {
        return Product;
    }
 
    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 String getSearchKey() {
        return (String) get(PROPERTY_SEARCHKEY);
    }
 
    public void setSearchKey(String searchKey) {
        set(PROPERTY_SEARCHKEY, searchKey);
    }
 
    public String getName() {
        return (String) get(PROPERTY_NAME);
    }
 
    public void setName(String name) {
        set(PROPERTY_NAME, name);
    }
 
    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }
 
    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }
 
    public String getComments() {
        return (String) get(PROPERTY_COMMENTS);
    }
 
    public void setComments(String comments) {
        set(PROPERTY_COMMENTS, comments);
    }
 
    public String getHelpComment() {
        return (String) get(PROPERTY_HELPCOMMENT);
    }
 
    public void setHelpComment(String helpComment) {
        set(PROPERTY_HELPCOMMENT, helpComment);
    }
 
    public String getUPCEAN() {
        return (String) get(PROPERTY_UPCEAN);
    }
 
    public void setUPCEAN(String uPCEAN) {
        set(PROPERTY_UPCEAN, uPCEAN);
    }
 
    public String getSKU() {
        return (String) get(PROPERTY_SKU);
    }
 
    public void setSKU(String sKU) {
        set(PROPERTY_SKU, sKU);
    }
 
    public org.openbravo.model.common.uom.UOM getUOM() {
        return (org.openbravo.model.common.uom.UOM) get(PROPERTY_UOM);
    }
 
    public void setUOM(org.openbravo.model.common.uom.UOM uOM) {
        set(PROPERTY_UOM, uOM);
    }
 
    public User getSalesRepresentative() {
        return (User) get(PROPERTY_SALESREPRESENTATIVE);
    }
 
    public void setSalesRepresentative(User salesRepresentative) {
        set(PROPERTY_SALESREPRESENTATIVE, salesRepresentative);
    }
 
    public Boolean isSummaryLevel() {
        return (Boolean) get(PROPERTY_SUMMARYLEVEL);
    }
 
    public void setSummaryLevel(Boolean summaryLevel) {
        set(PROPERTY_SUMMARYLEVEL, summaryLevel);
    }
 
    public Boolean isStocked() {
        return (Boolean) get(PROPERTY_STOCKED);
    }
 
    public void setStocked(Boolean stocked) {
        set(PROPERTY_STOCKED, stocked);
    }
 
    public Boolean isPurchase() {
        return (Boolean) get(PROPERTY_PURCHASE);
    }
 
    public void setPurchase(Boolean purchase) {
        set(PROPERTY_PURCHASE, purchase);
    }
 
    public Boolean isSale() {
        return (Boolean) get(PROPERTY_SALE);
    }
 
    public void setSale(Boolean sale) {
        set(PROPERTY_SALE, sale);
    }
 
    public Boolean isBillOfMaterials() {
        return (Boolean) get(PROPERTY_BILLOFMATERIALS);
    }
 
    public void setBillOfMaterials(Boolean billOfMaterials) {
        set(PROPERTY_BILLOFMATERIALS, billOfMaterials);
    }
 
    public Boolean isPrintDetailsOnInvoice() {
        return (Boolean) get(PROPERTY_PRINTDETAILSONINVOICE);
    }
 
    public void setPrintDetailsOnInvoice(Boolean printDetailsOnInvoice) {
        set(PROPERTY_PRINTDETAILSONINVOICE, printDetailsOnInvoice);
    }
 
    public Boolean isPrintDetailsOnPickList() {
        return (Boolean) get(PROPERTY_PRINTDETAILSONPICKLIST);
    }
 
    public void setPrintDetailsOnPickList(Boolean printDetailsOnPickList) {
        set(PROPERTY_PRINTDETAILSONPICKLIST, printDetailsOnPickList);
    }
 
    public Boolean isBOMVerified() {
        return (Boolean) get(PROPERTY_BOMVERIFIED);
    }
 
    public void setBOMVerified(Boolean bOMVerified) {
        set(PROPERTY_BOMVERIFIED, bOMVerified);
    }
 
    public ProductCategory getProductCategory() {
        return (ProductCategory) get(PROPERTY_PRODUCTCATEGORY);
    }
 
    public void setProductCategory(ProductCategory productCategory) {
        set(PROPERTY_PRODUCTCATEGORY, productCategory);
    }
 
    public String getClassification() {
        return (String) get(PROPERTY_CLASSIFICATION);
    }
 
    public void setClassification(String classification) {
        set(PROPERTY_CLASSIFICATION, classification);
    }
 
    public BigDecimal getVolume() {
        return (BigDecimal) get(PROPERTY_VOLUME);
    }
 
    public void setVolume(BigDecimal volume) {
        set(PROPERTY_VOLUME, volume);
    }
 
    public BigDecimal getWeight() {
        return (BigDecimal) get(PROPERTY_WEIGHT);
    }
 
    public void setWeight(BigDecimal weight) {
        set(PROPERTY_WEIGHT, weight);
    }
 
    public BigDecimal getShelfWidth() {
        return (BigDecimal) get(PROPERTY_SHELFWIDTH);
    }
 
    public void setShelfWidth(BigDecimal shelfWidth) {
        set(PROPERTY_SHELFWIDTH, shelfWidth);
    }
 
    public BigDecimal getShelfHeight() {
        return (BigDecimal) get(PROPERTY_SHELFHEIGHT);
    }
 
    public void setShelfHeight(BigDecimal shelfHeight) {
        set(PROPERTY_SHELFHEIGHT, shelfHeight);
    }
 
    public BigDecimal getShelfDepth() {
        return (BigDecimal) get(PROPERTY_SHELFDEPTH);
    }
 
    public void setShelfDepth(BigDecimal shelfDepth) {
        set(PROPERTY_SHELFDEPTH, shelfDepth);
    }
 
    public Long getUnitsPerPallet() {
        return (Long) get(PROPERTY_UNITSPERPALLET);
    }
 
    public void setUnitsPerPallet(Long unitsPerPallet) {
        set(PROPERTY_UNITSPERPALLET, unitsPerPallet);
    }
 
    public TaxCategory getTaxCategory() {
        return (TaxCategory) get(PROPERTY_TAXCATEGORY);
    }
 
    public void setTaxCategory(TaxCategory taxCategory) {
        set(PROPERTY_TAXCATEGORY, taxCategory);
    }
 
    public Resource getResource() {
        return (Resource) get(PROPERTY_RESOURCE);
    }
 
    public void setResource(Resource resource) {
        set(PROPERTY_RESOURCE, resource);
    }
 
    public Boolean isDiscontinued() {
        return (Boolean) get(PROPERTY_DISCONTINUED);
    }
 
    public void setDiscontinued(Boolean discontinued) {
        set(PROPERTY_DISCONTINUED, discontinued);
    }
 
    public Date getDiscontinuedBy() {
        return (Date) get(PROPERTY_DISCONTINUEDBY);
    }
 
    public void setDiscontinuedBy(Date discontinuedBy) {
        set(PROPERTY_DISCONTINUEDBY, discontinuedBy);
    }
 
    public Boolean isProcessNow() {
        return (Boolean) get(PROPERTY_PROCESSNOW);
    }
 
    public void setProcessNow(Boolean processNow) {
        set(PROPERTY_PROCESSNOW, processNow);
    }
 
    public ExpenseType getExpenseType() {
        return (ExpenseType) get(PROPERTY_EXPENSETYPE);
    }
 
    public void setExpenseType(ExpenseType expenseType) {
        set(PROPERTY_EXPENSETYPE, expenseType);
    }
 
    public String getProductType() {
        return (String) get(PROPERTY_PRODUCTTYPE);
    }
 
    public void setProductType(String productType) {
        set(PROPERTY_PRODUCTTYPE, productType);
    }
 
    public String getImageURL() {
        return (String) get(PROPERTY_IMAGEURL);
    }
 
    public void setImageURL(String imageURL) {
        set(PROPERTY_IMAGEURL, imageURL);
    }
 
    public String getDescriptionURL() {
        return (String) get(PROPERTY_DESCRIPTIONURL);
    }
 
    public void setDescriptionURL(String descriptionURL) {
        set(PROPERTY_DESCRIPTIONURL, descriptionURL);
    }
 
    public Long getGuaranteedDays() {
        return (Long) get(PROPERTY_GUARANTEEDDAYS);
    }
 
    public void setGuaranteedDays(Long guaranteedDays) {
        set(PROPERTY_GUARANTEEDDAYS, guaranteedDays);
    }
 
    public String getVersionNo() {
        return (String) get(PROPERTY_VERSIONNO);
    }
 
    public void setVersionNo(String versionNo) {
        set(PROPERTY_VERSIONNO, versionNo);
    }
 
    public AttributeSet getAttributeSet() {
        return (AttributeSet) get(PROPERTY_ATTRIBUTESET);
    }
 
    public void setAttributeSet(AttributeSet attributeSet) {
        set(PROPERTY_ATTRIBUTESET, attributeSet);
    }
 
    public AttributeSetInstance getAttributeSetValue() {
        return (AttributeSetInstance) get(PROPERTY_ATTRIBUTESETVALUE);
    }
 
    public void setAttributeSetValue(AttributeSetInstance attributeSetValue) {
        set(PROPERTY_ATTRIBUTESETVALUE, attributeSetValue);
    }
 
    public String getDownloadURL() {
        return (String) get(PROPERTY_DOWNLOADURL);
    }
 
    public void setDownloadURL(String downloadURL) {
        set(PROPERTY_DOWNLOADURL, downloadURL);
    }
 
    public FreightCategory getFreightCategory() {
        return (FreightCategory) get(PROPERTY_FREIGHTCATEGORY);
    }
 
    public void setFreightCategory(FreightCategory freightCategory) {
        set(PROPERTY_FREIGHTCATEGORY, freightCategory);
    }
 
    public Locator getStorageBin() {
        return (Locator) get(PROPERTY_STORAGEBIN);
    }
 
    public void setStorageBin(Locator storageBin) {
        set(PROPERTY_STORAGEBIN, storageBin);
    }
 
    public Image getImage() {
        return (Image) get(PROPERTY_IMAGE);
    }
 
    public void setImage(Image image) {
        set(PROPERTY_IMAGE, image);
    }
 
    public BusinessPartner getBusinessPartner() {
        return (BusinessPartner) get(PROPERTY_BUSINESSPARTNER);
    }
 
    public void setBusinessPartner(BusinessPartner businessPartner) {
        set(PROPERTY_BUSINESSPARTNER, businessPartner);
    }
 
    public Boolean isPrintPrice() {
        return (Boolean) get(PROPERTY_PRINTPRICE);
    }
 
    public void setPrintPrice(Boolean printPrice) {
        set(PROPERTY_PRINTPRICE, printPrice);
    }
 
    public String getName2() {
        return (String) get(PROPERTY_NAME2);
    }
 
    public void setName2(String name2) {
        set(PROPERTY_NAME2, name2);
    }
 
    public String getCostType() {
        return (String) get(PROPERTY_COSTTYPE);
    }
 
    public void setCostType(String costType) {
        set(PROPERTY_COSTTYPE, costType);
    }
 
    public BigDecimal getStandardCost() {
        return (BigDecimal) get(PROPERTY_STANDARDCOST);
    }
 
    public void setStandardCost(BigDecimal standardCost) {
        set(PROPERTY_STANDARDCOST, standardCost);
    }
 
    public BigDecimal getMinimumStock() {
        return (BigDecimal) get(PROPERTY_MINIMUMSTOCK);
    }
 
    public void setMinimumStock(BigDecimal minimumStock) {
        set(PROPERTY_MINIMUMSTOCK, minimumStock);
    }
 
    public Boolean isEnforceAttribute() {
        return (Boolean) get(PROPERTY_ENFORCEATTRIBUTE);
    }
 
    public void setEnforceAttribute(Boolean enforceAttribute) {
        set(PROPERTY_ENFORCEATTRIBUTE, enforceAttribute);
    }
 
    public Boolean isCalculated() {
        return (Boolean) get(PROPERTY_CALCULATED);
    }
 
    public void setCalculated(Boolean calculated) {
        set(PROPERTY_CALCULATED, calculated);
    }
 
    public ProcessPlan getProcessPlan() {
        return (ProcessPlan) get(PROPERTY_PROCESSPLAN);
    }
 
    public void setProcessPlan(ProcessPlan processPlan) {
        set(PROPERTY_PROCESSPLAN, processPlan);
    }
 
    public Boolean isProduction() {
        return (Boolean) get(PROPERTY_PRODUCTION);
    }
 
    public void setProduction(Boolean production) {
        set(PROPERTY_PRODUCTION, production);
    }
 
    public BigDecimal getCapacity() {
        return (BigDecimal) get(PROPERTY_CAPACITY);
    }
 
    public void setCapacity(BigDecimal capacity) {
        set(PROPERTY_CAPACITY, capacity);
    }
 
    public BigDecimal getMinimumLeadTime() {
        return (BigDecimal) get(PROPERTY_MINIMUMLEADTIME);
    }
 
    public void setMinimumLeadTime(BigDecimal minimumLeadTime) {
        set(PROPERTY_MINIMUMLEADTIME, minimumLeadTime);
    }
 
    public Planner getPlanner() {
        return (Planner) get(PROPERTY_PLANNER);
    }
 
    public void setPlanner(Planner planner) {
        set(PROPERTY_PLANNER, planner);
    }
 
    public PlanningMethod getPlanningMethod() {
        return (PlanningMethod) get(PROPERTY_PLANNINGMETHOD);
    }
 
    public void setPlanningMethod(PlanningMethod planningMethod) {
        set(PROPERTY_PLANNINGMETHOD, planningMethod);
    }
 
    public BigDecimal getMaxQuantity() {
        return (BigDecimal) get(PROPERTY_MAXQUANTITY);
    }
 
    public void setMaxQuantity(BigDecimal maxQuantity) {
        set(PROPERTY_MAXQUANTITY, maxQuantity);
    }
 
    public BigDecimal getMinQuantity() {
        return (BigDecimal) get(PROPERTY_MINQUANTITY);
    }
 
    public void setMinQuantity(BigDecimal minQuantity) {
        set(PROPERTY_MINQUANTITY, minQuantity);
    }
 
    public BigDecimal getStandardQuantity() {
        return (BigDecimal) get(PROPERTY_STANDARDQUANTITY);
    }
 
    public void setStandardQuantity(BigDecimal standardQuantity) {
        set(PROPERTY_STANDARDQUANTITY, standardQuantity);
    }
 
    public Boolean isQuantityType() {
        return (Boolean) get(PROPERTY_QUANTITYTYPE);
    }
 
    public void setQuantityType(Boolean quantityType) {
        set(PROPERTY_QUANTITYTYPE, quantityType);
    }
 
    public BigDecimal getSafetyStock() {
        return (BigDecimal) get(PROPERTY_SAFETYSTOCK);
    }
 
    public void setSafetyStock(BigDecimal safetyStock) {
        set(PROPERTY_SAFETYSTOCK, safetyStock);
    }
 
    public String getUseAttributeSetValueAs() {
        return (String) get(PROPERTY_USEATTRIBUTESETVALUEAS);
    }
 
    public void setUseAttributeSetValueAs(String useAttributeSetValueAs) {
        set(PROPERTY_USEATTRIBUTESETVALUEAS, useAttributeSetValueAs);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductBOM> getProductBOMList() {
        return (List<ProductBOM>) get(PROPERTY_PRODUCTBOMLIST);
    }
 
    public void setProductBOMList(List<ProductBOM> productBOMList) {
        set(PROPERTY_PRODUCTBOMLIST, productBOMList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductTrl> getProductTrlList() {
        return (List<ProductTrl>) get(PROPERTY_PRODUCTTRLLIST);
    }
 
    public void setProductTrlList(List<ProductTrl> productTrlList) {
        set(PROPERTY_PRODUCTTRLLIST, productTrlList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductOrg> getProductOrgList() {
        return (List<ProductOrg>) get(PROPERTY_PRODUCTORGLIST);
    }
 
    public void setProductOrgList(List<ProductOrg> productOrgList) {
        set(PROPERTY_PRODUCTORGLIST, productOrgList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ApprovedVendor> getApprovedVendorList() {
        return (List<ApprovedVendor>) get(PROPERTY_APPROVEDVENDORLIST);
    }
 
    public void setApprovedVendorList(List<ApprovedVendor> approvedVendorList) {
        set(PROPERTY_APPROVEDVENDORLIST, approvedVendorList);
    }
 
    @SuppressWarnings("unchecked")
    public List<Replenish> getReplenishList() {
        return (List<Replenish>) get(PROPERTY_REPLENISHLIST);
    }
 
    public void setReplenishList(List<Replenish> replenishList) {
        set(PROPERTY_REPLENISHLIST, replenishList);
    }
 
    @SuppressWarnings("unchecked")
    public List<Costing> getMaterialMgmtCostingList() {
        return (List<Costing>) get(PROPERTY_MATERIALMGMTCOSTINGLIST);
    }
 
    public void setMaterialMgmtCostingList(
        List<Costing> materialMgmtCostingList) {
        set(PROPERTY_MATERIALMGMTCOSTINGLIST, materialMgmtCostingList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductCustomer> getProductCustomerList() {
        return (List<ProductCustomer>) get(PROPERTY_PRODUCTCUSTOMERLIST);
    }
 
    public void setProductCustomerList(
        List<ProductCustomer> productCustomerList) {
        set(PROPERTY_PRODUCTCUSTOMERLIST, productCustomerList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductPrice> getPricingProductPriceList() {
        return (List<ProductPrice>) get(PROPERTY_PRICINGPRODUCTPRICELIST);
    }
 
    public void setPricingProductPriceList(
        List<ProductPrice> pricingProductPriceList) {
        set(PROPERTY_PRICINGPRODUCTPRICELIST, pricingProductPriceList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductAccounts> getProductAccountsList() {
        return (List<ProductAccounts>) get(PROPERTY_PRODUCTACCOUNTSLIST);
    }
 
    public void setProductAccountsList(
        List<ProductAccounts> productAccountsList) {
        set(PROPERTY_PRODUCTACCOUNTSLIST, productAccountsList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductUOM> getProductUOMList() {
        return (List<ProductUOM>) get(PROPERTY_PRODUCTUOMLIST);
    }
 
    public void setProductUOMList(List<ProductUOM> productUOMList) {
        set(PROPERTY_PRODUCTUOMLIST, productUOMList);
    }
 
    @SuppressWarnings("unchecked")
    public List<ProductSubstitute> getProductSubstituteList() {
        return (List<ProductSubstitute>) get(PROPERTY_PRODUCTSUBSTITUTELIST);
    }
 
    public void setProductSubstituteList(
        List<ProductSubstitute> productSubstituteList) {
        set(PROPERTY_PRODUCTSUBSTITUTELIST, productSubstituteList);
    }
}

Retrieved from "http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/Reference/Entity_Model/Product"

This page has been accessed 1,984 times. This page was last modified on 14 June 2011, at 11:04. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.