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

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

Search

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

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#ProcurementRequisitionLine


ProcurementRequisitionLine

This table contains each product demand of a requisition. The demand is defined by a product, the date when is needed to have and the quantity. It is also possible to define a preferred vendor, price list and the correspondent prices. The demands are locked when are being used to generate the purchase orders so there are not created duplicate purchase orders for the same demand.

To the database table (M_RequisitionLine) of this entity.

Properties

Note:

Property Column Constraints Type Description
id* M_Requisitionline_ID Mandatory
Max Length: 32
java.lang.String Identifies each product demand of a requisition.
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.
requisition# M_Requisition_ID Mandatory
ProcurementRequisition The ID identifies a unique requisition
product# M_Product_ID Mandatory
Product Identifies an item which is either purchased or sold in this organization.
quantity# Qty Mandatory
Min: 1
java.math.BigDecimal The Quantity indicates the number of a specific product or item for this document.
listPrice PriceList java.math.BigDecimal The Net List Price is the official price stated by the selected pricelist and the currency of the document.
lineNetAmount LineNetAmt java.math.BigDecimal Indicates the line net amount based on the quantity and the actual price. Any additional charges or freight are not included.
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.
uOM C_UOM_ID UOM The UOM defines a unique non monetary unit of measure
orderUOM M_Product_Uom_Id ProductUOM Alternative order UOM for the product.
orderQuantity QuantityOrder Min: 0
java.math.BigDecimal

Product quantity in the order uom.

attributeSetValue M_AttributeSetInstance_ID AttributeSetInstance The values of the actual Product Attributes
requisitionLineStatus Reqstatus Mandatory
Max Length: 60
java.lang.String Each product demand has its own status different than the status of the requisition. The statuses of the demands are:

Open: The demand hasn't been yet fulfilled. Closed: Has been ordered enough products. Cancelled: The demand has been closed without ordering any product. Planned: The demand has been included in a Purchase Plan of the MRP module.

matchedPOQty Orderedqty Mandatory
java.math.BigDecimal Indicates the already ordered quantity to fulfill the demand.
description Description Max Length: 255
java.lang.String A description is limited to 255 characters.
changeStatus Changestatus java.lang.Boolean Button to change the status of the record.
internalNotes Internalnotes Max Length: 255
java.lang.String Notes that can be set with the aim to be seen only by users with access to the record.
notesForSupplier Suppliernotes Max Length: 255
java.lang.String Notes set to include in the Purchase Orders with indications to the vendor.
plannedDate (inactive) java.util.Date
needByDate# Needbydate Mandatory
java.util.Date The date by when the demand needs to be fulfilled.
unitPrice PriceActual java.math.BigDecimal The actual price indicates the price for a product in source currency.
discount Discount java.math.BigDecimal The Discount indicates the discount applied or taken as a percentage.
currency C_Currency_ID Currency Indicates the currency to be used when processing this document.
lockedBy Lockedby ADUser Indicates the user that is locking the record.
lockQty Lockqty java.math.BigDecimal

Quantity set to be used when the record is processed.

lockPrice Lockprice java.math.BigDecimal

Price set to be used when the record is processed.

priceList M_PriceList_ID PricingPriceList

Price Lists are used to determine the pricing, margin and cost of items purchased or sold.

lockDate Lockdate java.util.Date Indicates the date when the record was locked. Id the lock it is more than 3 days old it is considered as unlocked.
lockCause Lockcause Max Length: 60
java.lang.String Indicate the reason to be locked the requisition line. The demands are locked when are being used in processes that will generate Purchase Orders to fulfill the demand. The lock is removed when those processes finish or if the lock is 3 days old.

The causes are The Requisition to Order window or the inclusion of the demand in a MRP process.

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.
grossUnitPrice Gross_Unit_Price java.math.BigDecimal This is the price that is provided when the price is inclusive of taxes.
grossAmount Gross_Amt java.math.BigDecimal
mRPProductionRunLineList MRPProductionRunLine
mRPPurchasingRunLineList MRPPurchasingRunLine
procurementRequisitionPOMatchList ProcurementRequisitionPOMatch


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-2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
 */
 package org.openbravo.model.procurement;
 
 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.ad.access.User;
 import org.openbravo.model.ad.system.Client;
 import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.model.common.currency.Currency;
 import org.openbravo.model.common.enterprise.Organization;
 import org.openbravo.model.common.plm.AttributeSetInstance;
 import org.openbravo.model.common.plm.Product;
 import org.openbravo.model.common.plm.ProductUOM;
 import org.openbravo.model.common.uom.UOM;
 import org.openbravo.model.mrp.ProductionRunLine;
 import org.openbravo.model.mrp.PurchasingRunLine;
 import org.openbravo.model.pricing.pricelist.PriceList;
 /**
  * Entity class for entity ProcurementRequisitionLine (stored in table M_RequisitionLine).
  *
  * NOTE: This class should not be instantiated directly. To instantiate this
  * class the {@link org.openbravo.base.provider.OBProvider} should be used.
  */
 public class RequisitionLine extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
     private static final long serialVersionUID = 1L;
     public static final String TABLE_NAME = "M_RequisitionLine";
     public static final String ENTITY_NAME = "ProcurementRequisitionLine";
     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_REQUISITION = "requisition";
     public static final String PROPERTY_PRODUCT = "product";
     public static final String PROPERTY_QUANTITY = "quantity";
     public static final String PROPERTY_LISTPRICE = "listPrice";
     public static final String PROPERTY_LINENETAMOUNT = "lineNetAmount";
     public static final String PROPERTY_BUSINESSPARTNER = "businessPartner";
     public static final String PROPERTY_UOM = "uOM";
     public static final String PROPERTY_ORDERUOM = "orderUOM";
     public static final String PROPERTY_ORDERQUANTITY = "orderQuantity";
     public static final String PROPERTY_ATTRIBUTESETVALUE = "attributeSetValue";
     public static final String PROPERTY_REQUISITIONLINESTATUS = "requisitionLineStatus";
     public static final String PROPERTY_MATCHEDPOQTY = "matchedPOQty";
     public static final String PROPERTY_DESCRIPTION = "description";
     public static final String PROPERTY_CHANGESTATUS = "changeStatus";
     public static final String PROPERTY_INTERNALNOTES = "internalNotes";
     public static final String PROPERTY_NOTESFORSUPPLIER = "notesForSupplier";
     public static final String PROPERTY_PLANNEDDATE = "plannedDate";
     public static final String PROPERTY_NEEDBYDATE = "needByDate";
     public static final String PROPERTY_UNITPRICE = "unitPrice";
     public static final String PROPERTY_DISCOUNT = "discount";
     public static final String PROPERTY_CURRENCY = "currency";
     public static final String PROPERTY_LOCKEDBY = "lockedBy";
     public static final String PROPERTY_LOCKQTY = "lockQty";
     public static final String PROPERTY_LOCKPRICE = "lockPrice";
     public static final String PROPERTY_PRICELIST = "priceList";
     public static final String PROPERTY_LOCKDATE = "lockDate";
     public static final String PROPERTY_LOCKCAUSE = "lockCause";
     public static final String PROPERTY_LINENO = "lineNo";
     public static final String PROPERTY_GROSSUNITPRICE = "grossUnitPrice";
     public static final String PROPERTY_GROSSAMOUNT = "grossAmount";
     public static final String PROPERTY_MRPPRODUCTIONRUNLINELIST = "mRPProductionRunLineList";
     public static final String PROPERTY_MRPPURCHASINGRUNLINELIST = "mRPPurchasingRunLineList";
     public static final String PROPERTY_PROCUREMENTREQUISITIONPOMATCHLIST = "procurementRequisitionPOMatchList";
 
     public RequisitionLine() {
         setDefaultValue(PROPERTY_ACTIVE, true);
         setDefaultValue(PROPERTY_CREATIONDATE, new Date());
         setDefaultValue(PROPERTY_UPDATED, new Date());
         setDefaultValue(PROPERTY_QUANTITY, new BigDecimal(1));
         setDefaultValue(PROPERTY_REQUISITIONLINESTATUS, "O");
         setDefaultValue(PROPERTY_MATCHEDPOQTY, new BigDecimal(0));
         setDefaultValue(PROPERTY_CHANGESTATUS, false);
         setDefaultValue(PROPERTY_GROSSUNITPRICE, new BigDecimal(0));
         setDefaultValue(PROPERTY_GROSSAMOUNT, new BigDecimal(0));
         setDefaultValue(PROPERTY_MRPPRODUCTIONRUNLINELIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_MRPPURCHASINGRUNLINELIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_PROCUREMENTREQUISITIONPOMATCHLIST, new ArrayList<Object>());
     }
 
     @Override
     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 Requisition getRequisition() {
         return (Requisition) get(PROPERTY_REQUISITION);
     }
 
     public void setRequisition(Requisition requisition) {
         set(PROPERTY_REQUISITION, requisition);
     }
 
     public Product getProduct() {
         return (Product) get(PROPERTY_PRODUCT);
     }
 
     public void setProduct(Product product) {
         set(PROPERTY_PRODUCT, product);
     }
 
     public BigDecimal getQuantity() {
         return (BigDecimal) get(PROPERTY_QUANTITY);
     }
 
     public void setQuantity(BigDecimal quantity) {
         set(PROPERTY_QUANTITY, quantity);
     }
 
     public BigDecimal getListPrice() {
         return (BigDecimal) get(PROPERTY_LISTPRICE);
     }
 
     public void setListPrice(BigDecimal listPrice) {
         set(PROPERTY_LISTPRICE, listPrice);
     }
 
     public BigDecimal getLineNetAmount() {
         return (BigDecimal) get(PROPERTY_LINENETAMOUNT);
     }
 
     public void setLineNetAmount(BigDecimal lineNetAmount) {
         set(PROPERTY_LINENETAMOUNT, lineNetAmount);
     }
 
     public BusinessPartner getBusinessPartner() {
         return (BusinessPartner) get(PROPERTY_BUSINESSPARTNER);
     }
 
     public void setBusinessPartner(BusinessPartner businessPartner) {
         set(PROPERTY_BUSINESSPARTNER, businessPartner);
     }
 
     public UOM getUOM() {
         return (UOM) get(PROPERTY_UOM);
     }
 
     public void setUOM(UOM uOM) {
         set(PROPERTY_UOM, uOM);
     }
 
     public ProductUOM getOrderUOM() {
         return (ProductUOM) get(PROPERTY_ORDERUOM);
     }
 
     public void setOrderUOM(ProductUOM orderUOM) {
         set(PROPERTY_ORDERUOM, orderUOM);
     }
 
     public BigDecimal getOrderQuantity() {
         return (BigDecimal) get(PROPERTY_ORDERQUANTITY);
     }
 
     public void setOrderQuantity(BigDecimal orderQuantity) {
         set(PROPERTY_ORDERQUANTITY, orderQuantity);
     }
 
     public AttributeSetInstance getAttributeSetValue() {
         return (AttributeSetInstance) get(PROPERTY_ATTRIBUTESETVALUE);
     }
 
     public void setAttributeSetValue(AttributeSetInstance attributeSetValue) {
         set(PROPERTY_ATTRIBUTESETVALUE, attributeSetValue);
     }
 
     public String getRequisitionLineStatus() {
         return (String) get(PROPERTY_REQUISITIONLINESTATUS);
     }
 
     public void setRequisitionLineStatus(String requisitionLineStatus) {
         set(PROPERTY_REQUISITIONLINESTATUS, requisitionLineStatus);
     }
 
     public BigDecimal getMatchedPOQty() {
         return (BigDecimal) get(PROPERTY_MATCHEDPOQTY);
     }
 
     public void setMatchedPOQty(BigDecimal matchedPOQty) {
         set(PROPERTY_MATCHEDPOQTY, matchedPOQty);
     }
 
     public String getDescription() {
         return (String) get(PROPERTY_DESCRIPTION);
     }
 
     public void setDescription(String description) {
         set(PROPERTY_DESCRIPTION, description);
     }
 
     public Boolean isChangeStatus() {
         return (Boolean) get(PROPERTY_CHANGESTATUS);
     }
 
     public void setChangeStatus(Boolean changeStatus) {
         set(PROPERTY_CHANGESTATUS, changeStatus);
     }
 
     public String getInternalNotes() {
         return (String) get(PROPERTY_INTERNALNOTES);
     }
 
     public void setInternalNotes(String internalNotes) {
         set(PROPERTY_INTERNALNOTES, internalNotes);
     }
 
     public String getNotesForSupplier() {
         return (String) get(PROPERTY_NOTESFORSUPPLIER);
     }
 
     public void setNotesForSupplier(String notesForSupplier) {
         set(PROPERTY_NOTESFORSUPPLIER, notesForSupplier);
     }
 
     public Date getPlannedDate() {
         return (Date) get(PROPERTY_PLANNEDDATE);
     }
 
     public void setPlannedDate(Date plannedDate) {
         set(PROPERTY_PLANNEDDATE, plannedDate);
     }
 
     public Date getNeedByDate() {
         return (Date) get(PROPERTY_NEEDBYDATE);
     }
 
     public void setNeedByDate(Date needByDate) {
         set(PROPERTY_NEEDBYDATE, needByDate);
     }
 
     public BigDecimal getUnitPrice() {
         return (BigDecimal) get(PROPERTY_UNITPRICE);
     }
 
     public void setUnitPrice(BigDecimal unitPrice) {
         set(PROPERTY_UNITPRICE, unitPrice);
     }
 
     public BigDecimal getDiscount() {
         return (BigDecimal) get(PROPERTY_DISCOUNT);
     }
 
     public void setDiscount(BigDecimal discount) {
         set(PROPERTY_DISCOUNT, discount);
     }
 
     public Currency getCurrency() {
         return (Currency) get(PROPERTY_CURRENCY);
     }
 
     public void setCurrency(Currency currency) {
         set(PROPERTY_CURRENCY, currency);
     }
 
     public User getLockedBy() {
         return (User) get(PROPERTY_LOCKEDBY);
     }
 
     public void setLockedBy(User lockedBy) {
         set(PROPERTY_LOCKEDBY, lockedBy);
     }
 
     public BigDecimal getLockQty() {
         return (BigDecimal) get(PROPERTY_LOCKQTY);
     }
 
     public void setLockQty(BigDecimal lockQty) {
         set(PROPERTY_LOCKQTY, lockQty);
     }
 
     public BigDecimal getLockPrice() {
         return (BigDecimal) get(PROPERTY_LOCKPRICE);
     }
 
     public void setLockPrice(BigDecimal lockPrice) {
         set(PROPERTY_LOCKPRICE, lockPrice);
     }
 
     public PriceList getPriceList() {
         return (PriceList) get(PROPERTY_PRICELIST);
     }
 
     public void setPriceList(PriceList priceList) {
         set(PROPERTY_PRICELIST, priceList);
     }
 
     public Date getLockDate() {
         return (Date) get(PROPERTY_LOCKDATE);
     }
 
     public void setLockDate(Date lockDate) {
         set(PROPERTY_LOCKDATE, lockDate);
     }
 
     public String getLockCause() {
         return (String) get(PROPERTY_LOCKCAUSE);
     }
 
     public void setLockCause(String lockCause) {
         set(PROPERTY_LOCKCAUSE, lockCause);
     }
 
     public Long getLineNo() {
         return (Long) get(PROPERTY_LINENO);
     }
 
     public void setLineNo(Long lineNo) {
         set(PROPERTY_LINENO, lineNo);
     }
 
     public BigDecimal getGrossUnitPrice() {
         return (BigDecimal) get(PROPERTY_GROSSUNITPRICE);
     }
 
     public void setGrossUnitPrice(BigDecimal grossUnitPrice) {
         set(PROPERTY_GROSSUNITPRICE, grossUnitPrice);
     }
 
     public BigDecimal getGrossAmount() {
         return (BigDecimal) get(PROPERTY_GROSSAMOUNT);
     }
 
     public void setGrossAmount(BigDecimal grossAmount) {
         set(PROPERTY_GROSSAMOUNT, grossAmount);
     }
 
     @SuppressWarnings("unchecked")
     public List<ProductionRunLine> getMRPProductionRunLineList() {
       return (List<ProductionRunLine>) get(PROPERTY_MRPPRODUCTIONRUNLINELIST);
     }
 
     public void setMRPProductionRunLineList(List<ProductionRunLine> mRPProductionRunLineList) {
         set(PROPERTY_MRPPRODUCTIONRUNLINELIST, mRPProductionRunLineList);
     }
 
     @SuppressWarnings("unchecked")
     public List<PurchasingRunLine> getMRPPurchasingRunLineList() {
       return (List<PurchasingRunLine>) get(PROPERTY_MRPPURCHASINGRUNLINELIST);
     }
 
     public void setMRPPurchasingRunLineList(List<PurchasingRunLine> mRPPurchasingRunLineList) {
         set(PROPERTY_MRPPURCHASINGRUNLINELIST, mRPPurchasingRunLineList);
     }
 
     @SuppressWarnings("unchecked")
     public List<RequisitionPOMatch> getProcurementRequisitionPOMatchList() {
       return (List<RequisitionPOMatch>) get(PROPERTY_PROCUREMENTREQUISITIONPOMATCHLIST);
     }
 
     public void setProcurementRequisitionPOMatchList(List<RequisitionPOMatch> procurementRequisitionPOMatchList) {
         set(PROPERTY_PROCUREMENTREQUISITIONPOMATCHLIST, procurementRequisitionPOMatchList);
     }
 
 }

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Reference/Entity_Model/ProcurementRequisitionLine"

This page has been accessed 887 times. This page was last modified on 5 August 2014, at 13:56. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.