ERP/3.0/Developers Guide/Database Model/org.openbravo.model.dataimport/I Product
I_Product
Before importing, Openbravo checks the Unit of Measure (default if not set), the Product Category (default if not set), the Business Partner, the Currency (defaults to accounting currency if not set), the Product Type (only Items and Services), the uniquen
- Name:DataImportProduct
- Classname:Product
This table contains the following columns:
Name | Nullable | Data Type | Description |
I_Product_ID | N | VARCHAR2(32) | Import Item or Service |
AD_Client_ID | Y | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | Y | VARCHAR2(32) | Organizational entity within client |
IsActive | Y | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | Y | DATE | The date that this record is completed. |
CreatedBy | Y | VARCHAR2(32) | User who created this records |
Updated | Y | DATE | x not implemented |
UpdatedBy | Y | VARCHAR2(32) | User who updated this records |
M_Product_ID | Y | VARCHAR2(32) | An item produced by a process. |
Value | Y | NVARCHAR2(40) | A fast method for finding a particular record. |
Name | Y | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
DocumentNote | Y | NVARCHAR2(2000) | A space to write additional related information. |
Help | Y | NVARCHAR2(2000) | A comment that adds additional information to help users work with fields. |
UPC | Y | VARCHAR2(30) | A bar code with a number to identify a product. |
SKU | Y | VARCHAR2(30) | A "stock keeping unit" used to track items sold to business partners. |
X12DE355 | Y | CHAR(2) | UOM EDI Code |
C_UOM_ID | Y | VARCHAR2(32) | A non monetary unit of measure. |
ProductCategory_Value | Y | NVARCHAR2(40) | null |
M_Product_Category_ID | Y | VARCHAR2(32) | A classification of items based on similar characteristics or attributes. |
ProductType | Y | VARCHAR2(60) | An important classification used to determine the accounting and management of a product. |
Classification | Y | CHAR(1) | x not implemented |
Volume | Y | NUMBER | Volume of a product |
Weight | Y | NUMBER | Weight of a product |
ShelfWidth | Y | NUMBER(10, 0) | Shelf width required |
ShelfHeight | Y | NUMBER(10, 0) | Shelf height required |
ShelfDepth | Y | NUMBER(10, 0) | Shelf depth required |
UnitsPerPallet | Y | NUMBER(10, 0) | Units Per Pallet |
Discontinued | Y | CHAR(1) | A statement mentioning that this product will no longer be available on the market. |
DiscontinuedBy | Y | DATE | The name of the person who discontinues an item. |
ImageURL | Y | NVARCHAR2(120) | An address for the product image which can be accessed via internet. |
DescriptionURL | Y | NVARCHAR2(120) | An address for the product description which can be accessed via internet. |
BPartner_Value | Y | NVARCHAR2(40) | An abbreviated name (or a code) to help find a business partner. |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
ISO_Code | Y | CHAR(3) | A coding standard for countries. |
C_Currency_ID | Y | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
PriceList | Y | NUMBER | The official price of a product in a specified currency. |
PricePO | Y | NUMBER | The price charged to purchase a specific item. |
RoyaltyAmt | Y | NUMBER | (Included) Amount for copyright, etc. |
PriceEffective | Y | DATE | The time from which a price is valid. |
VendorProductNo | Y | NVARCHAR2(40) | The identifier used by a vendor to indentify a product being purchased by their business partners. |
VendorCategory | Y | NVARCHAR2(30) | A classification of vendors based on similar characteristics or attributes. |
Manufacturer | Y | NVARCHAR2(30) | The business partner that makes a specific product. |
Order_Min | Y | NUMBER | The minimum number of an item that must be purchased at one time from a vendor. |
Order_Pack | Y | NUMBER | The number of a specific item that comes in one package. |
CostPerOrder | Y | NUMBER | The additional added fixed cost for a purchased product. |
DeliveryTime_Promised | Y | NUMBER(10, 0) | Number of days between placing an order and the actual delivery as promised by the vendor. |
Processing | Y | CHAR(1) | A request to process the respective document or task. |
Processed | Y | CHAR(1) | A confirmation that the associated documents or requests are processed. |
I_ErrorMsg | Y | NVARCHAR2(2000) | A message that appears when errors occur during the importing process. |
I_IsImported | Y | CHAR(1) | A indication that the desired process has been completed successfully. |
Other Info
Check constraints
These are the check constraints for this table:
- I_PRODUCT_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- I_PRODUCT_PROCESSED_CHECK: PROCESSED IN ('Y', 'N')
- I_PROD_DISCONTINUED_CHECK: DISCONTINUED IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- I_PRODUCT_KEY
Columns
Import Product
The ID identifies a unique product
- Physical column name: I_Product_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
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.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: TableDir
Foreign key column to M_Product table, (column: M_Product_ID)
Search Key
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.
- Physical column name: Value
- Property Name: searchKey
- Reference: String
- This column is part of the table's identifier
Name
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.
- Physical column name: Name
- Property Name: name
- Reference: String
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Comments
The Document Note is used for recording any additional information regarding this product.
- Physical column name: DocumentNote
- Property Name: comments
- Reference: Text
Help/Comment
The Help field contains a hint, comment or help about the use of this item.
- Physical column name: Help
- Property Name: helpComment
- Reference: Text
UPC/EAN
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)
- Physical column name: UPC
- Property Name: uPCEAN
- Reference: String
SKU
The SKU indicates a user defined stock keeping unit. It may be used for an additional bar code symbols or your own schema.
- Physical column name: SKU
- Property Name: sKU
- Reference: String
EDI Code
The Unit of Measure Code indicates the EDI X12 Code Data Element 355 (Unit or Basis for Measurement)
- Physical column name: X12DE355
- Property Name: eDICode
- Reference: String
UOM
- Physical column name: C_UOM_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
Product Category Key
The value of the product category. This value is the short name for the group. If before inserting it doesn't exists in the table M_Product_Category_Id, it won't work
- Physical column name: ProductCategory_Value
- Property Name: productCategoryKey
- Reference: String
Product Category
- Physical column name: M_Product_Category_ID
- Property Name: productCategory
- Reference: TableDir
Foreign key column to M_Product_Category table, (column: M_Product_Category_ID)
Product Type
The type of product also determines accounting consequences.
- Physical column name: ProductType
- Property Name: productType
- Reference: List
- Default value: I
List values: M_Product_ProductType
The allowed values for this list are:
- E (Expense type)
- I (Item)
- O (Online)
- R (Resource)
- S (Service)
Classification
The Classification can be used to optionally group products.
- Physical column name: Classification
- Property Name: classification
- Reference: String
Volume
The Volume indicates the volume of the product in the Volume UOM of the Client
- Physical column name: Volume
- Property Name: volume
- Reference: Number
Weight
The Weight indicates the weight of the product in the Weight UOM of the Client
- Physical column name: Weight
- Property Name: weight
- Reference: Number
Shelf Width
The Shelf Width indicates the width dimension required on a shelf for a product
- Physical column name: ShelfWidth
- Property Name: shelfWidth
- Reference: Number
Shelf Height
The Shelf Height indicates the height dimension required on a shelf for a product
- Physical column name: ShelfHeight
- Property Name: shelfHeight
- Reference: Number
Shelf Depth
The Shelf Depth indicates the depth dimension required on a shelf for a product
- Physical column name: ShelfDepth
- Property Name: shelfDepth
- Reference: Number
Units Per Pallet
The Units per Pallet indicates the number of units of this product which fit on a pallet.
- Physical column name: UnitsPerPallet
- Property Name: unitsPerPallet
- Reference: Integer
Discontinued
The Discontinued check box indicates a product that has been discontinued.
- Physical column name: Discontinued
- Property Name: discontinued
- Reference: YesNo
Discontinued by
The Discontinued By indicates the individual who discontinued this product
- Physical column name: DiscontinuedBy
- Property Name: discontinuedBy
- Reference: Date
Image URL
URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.
- Physical column name: ImageURL
- Property Name: imageURL
- Reference: String
Description URL
URL for the description
- Physical column name: DescriptionURL
- Property Name: descriptionURL
- Reference: String
Business Partner Search Key
An abbreviated name (or a code) to help find a business partner. Usually, a company's internal idenfitier is used here.
- Physical column name: BPartner_Value
- Property Name: businessPartnerSearchKey
- Reference: String
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
ISO Code
For details - http://www.unece.org/trade/rec/rec09en.htm
- Physical column name: ISO_Code
- Property Name: iSOCode
- Reference: String
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
List Price
The List Price is the official price stated by the selected pricelist and the currency of the document.
- Physical column name: PriceList
- Property Name: listPrice
- Reference: Price
Purchase Order Price
The PO Price indicates the price for a product per the purchase order.
- Physical column name: PricePO
- Property Name: purchaseOrderPrice
- Reference: Price
Royalty Amount
(Included) Amount for copyright, etc.
- Physical column name: RoyaltyAmt
- Property Name: royaltyAmount
- Reference: Amount
Price Effective From
The Price Effective indicates the date this price is for. This allows you to enter future prices for products which will become effective when appropriate.
- Physical column name: PriceEffective
- Property Name: priceEffectiveFrom
- Reference: Date
Vendor Product No.
The Vendor Product Number identifies the number used by the vendor for this product.
- Physical column name: VendorProductNo
- Property Name: vendorProductNo
- Reference: String
Vendor Category
The Vendor Category identifies the category used by the vendor for this product.
- Physical column name: VendorCategory
- Property Name: vendorCategory
- Reference: String
Manufacturer
Manufacturer
- Physical column name: Manufacturer
- Property Name: manufacturer
- Reference: String
Minimum Order Qty.
The Minimum Order Quantity indicates the smallest quantity of this product which can be ordered.
- Physical column name: Order_Min
- Property Name: minimumOrderQty
- Reference: Integer
Quantity per Package
The Order Pack Quantity indicates the number of units in each pack of this product.
- Physical column name: Order_Pack
- Property Name: quantityPerPackage
- Reference: Integer
Fixed Cost per Order
The Cost Per Order indicates the fixed charge levied when an order for this product is placed.
- Physical column name: CostPerOrder
- Property Name: fixedCostPerOrder
- Reference: Amount
Purchasing Lead Time
Indicates the number of days between placing an order and the actual delivery as promised by the vendor.
- Physical column name: DeliveryTime_Promised
- Property Name: purchasingLeadTime
- Reference: Integer
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
Import Error Message
The Import Error Message displays any error messages generated during the import process.
- Physical column name: I_ErrorMsg
- Property Name: importErrorMessage
- Reference: String
Import Process Complete
The Imported check box indicates if this import has been processed.
- Physical column name: I_IsImported
- Property Name: importProcessComplete
- Reference: YesNo