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

ERP/3.0/Developers Guide/Database Model/org.openbravo.model.procurement/M RequisitionLine

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/Database Model/org.openbravo.model.procurement


Contents

M_RequisitionLine

This table contains the following columns:

Name Nullable Data Type Description


IsActive No CHAR (1) 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.

M_AttributeSetInstance_ID Yes VARCHAR (32) The values of the actual Product Attributes
C_BPartner_ID Yes VARCHAR (32) A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.
Changestatus Yes CHAR (1) Button to change the status of the record.
AD_Client_ID No VARCHAR (32) A Client is a company or a legal entity. You cannot share data between Clients.
Createdby No VARCHAR (32) The Created By field indicates the user who created this record.
Created No TIMESTAMP (7) The Created field indicates the date that this record was created.
C_Currency_ID Yes VARCHAR (32) Indicates the currency to be used when processing this document.
Description Yes NVARCHAR (255) A description is limited to 255 characters.
Discount Yes DECIMAL The Discount indicates the discount applied or taken as a percentage.
Gross_Amt Yes DECIMAL
Gross_Unit_Price Yes DECIMAL This is the price that is provided when the price is inclusive of taxes.
Internalnotes Yes NVARCHAR (255) Notes that can be set with the aim to be seen only by users with access to the record.
LineNetAmt Yes DECIMAL Indicates the line net amount based on the quantity and the actual price. Any additional charges or freight are not included.
Line No DECIMAL (10,0) Indicates the unique line for a document. It will also control the display order of the lines within a document.
PriceList Yes DECIMAL The Net List Price is the official price stated by the selected pricelist and the currency of the document.
Lockaumqty Yes DECIMAL
Lockcause Yes VARCHAR (60) 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.

Lockdate Yes TIMESTAMP (7) Indicates the date when the record was locked. Id the lock it is more than 3 days old it is considered as unlocked.
Lockprice Yes DECIMAL

Price set to be used when the record is processed.

Lockqty Yes DECIMAL

Quantity set to be used when the record is processed.

Lockedby Yes VARCHAR (32) Indicates the user that is locking the record.
Orderedqty No DECIMAL Indicates the already ordered quantity to fulfill the demand.
Needbydate No TIMESTAMP (7) The date by when the demand needs to be fulfilled.
Suppliernotes Yes NVARCHAR (255) Notes set to include in the Purchase Orders with indications to the vendor.
Aumqty Yes DECIMAL The number of a certain item involved in the transaction, according to the defined Operative UOM.
C_Aum Yes VARCHAR (32) The Alternative UOM defines a unique non monetary unit of measure
QuantityOrder Yes DECIMAL

Product quantity in the order uom.

M_Product_Uom_Id Yes VARCHAR (32) Alternative order UOM for the product.
AD_Org_ID No VARCHAR (32) An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
Dateplanned Yes TIMESTAMP (7) Expected date of the transaction.
M_PriceList_ID Yes VARCHAR (32)

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

M_Product_ID No VARCHAR (32) Identifies an item which is either purchased or sold in this organization.
Qty No DECIMAL The Quantity indicates the number of a specific product or item for this document.
M_Requisition_ID No VARCHAR (32) The ID identifies a unique requisition
M_Requisitionline_ID No VARCHAR (32) Identifies each product demand of a requisition.
Reqstatus No VARCHAR (60) 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.

C_UOM_ID Yes VARCHAR (32) The UOM defines a unique non monetary unit of measure
PriceActual Yes DECIMAL The actual price indicates the price for a product in source currency.
Updated No TIMESTAMP (7) The Updated field indicates the date that this record was updated.
Updatedby No VARCHAR (32) The Updated By field indicates the user who updated this record.

Columns

Active



top


Attribute Set Value


Foreign key column to M_AttributeSetInstance table, (column: M_AttributeSetInstance_ID)

top


Business Partner


Foreign key column to C_BPartner table, (column: C_BPartner_ID)

Callout: SL_Requisition_BPartner_PriceList

This column has a callout associated.

It is implemented by [1] Java Class.

top


Change Status



top


Client


Foreign key column to AD_Client table, (column: AD_Client_ID)

top


Created By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Creation Date



top


Currency


Foreign key column to C_Currency table, (column: C_Currency_ID) It has a validation "C_Currency of PriceList", with the following code

C_Currency.C_Currency_ID IN (SELECT C_Currency_ID FROM M_Pricelist WHERE ISACTIVE='Y')

top


Description



top


Discount %



Callout: SL_RequisitionLine_Amt

This column has a callout associated.

It is implemented by [2] Java Class.

top


Gross Amount



top


Gross Unit Price


Callout: SL_RequisitionLine_Amt

This column has a callout associated.

It is implemented by [3] Java Class.

top


Internal notes



top


Line Net Amount



top


Line No.



top


List Price



Callout: SL_RequisitionLine_Amt

This column has a callout associated.

It is implemented by [4] Java Class.

top


Lock AumQty



top


Lock cause



List values: Requisition lock cause

The allowed values for this list are:

top


Lock date



top


Lock price



top


Lock qty



top


Locked by


Foreign key column to AD_User table, (column: AD_User_ID)

top


Matched PO Qty



top


Need by date


top


Notes for supplier



top


Operative Quantity



Callout: OperativeQuantity_To_BaseQuantity

This column has a callout associated.

It is implemented by [5] Java Class.

top


Operative UOM


Foreign key column to C_UOM table, (column: C_UOM_ID) It has a validation "UOM Validation", with the following code

td0.c_uom_id IN(select p.c_uom_id from m_product p where p.m_product_id = @M_Product_ID@) or td0.c_uom_id IN(select a.c_uom_id from m_product_aum a where a.m_product_id = @M_Product_ID@ and ((@IsSOTrx@ = 'Y' and a.sales <> 'NA') OR (@IsSOTrx@ <> 'Y' and a.purchase <> 'NA')) and a.isactive='Y')

Callout: OperativeQuantity_To_BaseQuantity

This column has a callout associated.

It is implemented by [6] Java Class.

top


Order Quantity



Callout: SL_RequisitionLine_Conversion

This column has a callout associated.

It is implemented by [7] Java Class.

top


Order UOM


Foreign key column to M_Product_UOM table, (column: M_Product_Uom_Id) It has a validation "M_Product_UOM_ID", with the following code

M_Product_UOM.M_Product_ID = @M_Product_ID@

Callout: SL_RequisitionLine_Conversion

This column has a callout associated.

It is implemented by [8] Java Class.

top


Organization


Foreign key column to AD_Org table, (column: AD_Org_ID)

top


Planned Date



top


Price List


Foreign key column to M_PriceList table, (column: M_PriceList_ID) It has a validation "Purchase Pricelist", with the following code

M_Pricelist.IsSOPricelist='N'

Callout: SL_RequisitionLine_Product

This column has a callout associated.

It is implemented by [9] Java Class.

top


Product

Foreign key column to M_Product table, (column: M_Product_ID)

Callout: SL_RequisitionLine_Product

This column has a callout associated.

It is implemented by [10] Java Class.

top


Quantity


Callout: SL_RequisitionLine_Amt

This column has a callout associated.

It is implemented by [11] Java Class.

top


Requisition

Foreign key column to M_Requisition table, (column: M_Requisition_ID)

top


Requisition Line



top


Requisition line status


List values: Requisition status

The allowed values for this list are:

top


UOM


Foreign key column to C_UOM table, (column: C_UOM_ID)

top


Unit Price



Callout: SL_RequisitionLine_Amt

This column has a callout associated.

It is implemented by [12] Java Class.

top


Updated



top


Updated By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Other Info

Indices

These are the indices for this table (for each index there is a list of all the columns included within it):

top

Check Constraints

These are the check constraints for this table:

top

Back button.png   Back to org.openbravo.model.procurement

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Database_Model/org.openbravo.model.procurement/M_RequisitionLine"

This page has been accessed 5,116 times. This page was last modified on 22 August 2023, at 09:35. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.