ERP/3.0/Developers Guide/Database Model/org.openbravo.model.procurement/M RequisitionLine
M_RequisitionLine
- Name:M_RequisitionLine
- Classname:ProcurementRequisitionLine
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
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Attribute Set Value
- Physical column name: M_AttributeSetInstance_ID
- Property Name: attributeSetValue
- Reference: PAttribute
Foreign key column to M_AttributeSetInstance table, (column: M_AttributeSetInstance_ID)
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
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.
Change Status
- Physical column name: Changestatus
- Property Name: changeStatus
- Reference: Button
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
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')
Description
- Physical column name: Description
- Property Name: description
- Reference: Text
Discount %
- Physical column name: Discount
- Property Name: discount
- Reference: Number
Callout: SL_RequisitionLine_Amt
This column has a callout associated.
It is implemented by [2] Java Class.
Gross Amount
- Physical column name: Gross_Amt
- Property Name: grossAmount
- Reference: Amount
- Default value: 0
Gross Unit Price
- Physical column name: Gross_Unit_Price
- Property Name: grossUnitPrice
- Reference: Price
- Default value: 0
Callout: SL_RequisitionLine_Amt
This column has a callout associated.
It is implemented by [3] Java Class.
Internal notes
- Physical column name: Internalnotes
- Property Name: internalNotes
- Reference: Text
Line Net Amount
- Physical column name: LineNetAmt
- Property Name: lineNetAmount
- Reference: Amount
Line No.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
List Price
- Physical column name: PriceList
- Property Name: listPrice
- Reference: Price
Callout: SL_RequisitionLine_Amt
This column has a callout associated.
It is implemented by [4] Java Class.
Lock AumQty
- Physical column name: Lockaumqty
- Property Name: lockAumQty
- Reference: Quantity
Lock cause
- Physical column name: Lockcause
- Property Name: lockCause
- Reference: List
List values: Requisition lock cause
The allowed values for this list are:
- P (Included in a MRP process)
- M (Locked by Requisition to Order window)
Lock date
- Physical column name: Lockdate
- Property Name: lockDate
- Reference: Date
Lock price
- Physical column name: Lockprice
- Property Name: lockPrice
- Reference: Price
Lock qty
- Physical column name: Lockqty
- Property Name: lockQty
- Reference: Quantity
Locked by
- Physical column name: Lockedby
- Property Name: lockedBy
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
Matched PO Qty
- Physical column name: Orderedqty
- Property Name: matchedPOQty
- Reference: Quantity
- Default value: 0
Need by date
- Physical column name: Needbydate
- Property Name: needByDate
- Reference: Date
- This column is part of the table's identifier
Notes for supplier
- Physical column name: Suppliernotes
- Property Name: notesForSupplier
- Reference: Text
Operative Quantity
- Physical column name: Aumqty
- Property Name: operativeQuantity
- Reference: Quantity
Callout: OperativeQuantity_To_BaseQuantity
This column has a callout associated.
It is implemented by [5] Java Class.
Operative UOM
- Physical column name: C_Aum
- Property Name: operativeUOM
- Reference: Table
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.
Order Quantity
- Physical column name: QuantityOrder
- Property Name: orderQuantity
- Reference: Quantity
Callout: SL_RequisitionLine_Conversion
This column has a callout associated.
It is implemented by [7] Java Class.
Order UOM
- Physical column name: M_Product_Uom_Id
- Property Name: orderUOM
- Reference: TableDir
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.
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Planned Date
- Physical column name: Dateplanned
- Property Name: plannedDate
- Reference: Date
Price List
- Physical column name: M_PriceList_ID
- Property Name: priceList
- Reference: TableDir
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.
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
- This column is part of the table's identifier
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.
Quantity
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
- This column is part of the table's identifier
Callout: SL_RequisitionLine_Amt
This column has a callout associated.
It is implemented by [11] Java Class.
Requisition
- Physical column name: M_Requisition_ID
- Property Name: requisition
- Reference: Search
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to M_Requisition table, (column: M_Requisition_ID)
Requisition Line
- Physical column name: M_Requisitionline_ID
- Property Name: id
- Reference: ID
Requisition line status
- Physical column name: Reqstatus
- Property Name: requisitionLineStatus
- Reference: List
- Default value: O
List values: Requisition status
The allowed values for this list are:
- O (Open): The requisition line has not been inclluded in a Purchasing plan, neither has an associated purchase order.
- P (Planned): The requisition has been included in a Purchase Plan and purchase orders have been created.
- C (Closed): The requisition has at least an associated purchase order.
- D (Cancelled): The requisition has been cancelled without creating a purchase order.
UOM
- Physical column name: C_UOM_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
Unit Price
- Physical column name: PriceActual
- Property Name: unitPrice
- Reference: Price
Callout: SL_RequisitionLine_Amt
This column has a callout associated.
It is implemented by [12] Java Class.
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- M_REQUISITIONLN_REQUISIT_IDX Not Unique. Columns:
- M_REQUISITION_ID
Check Constraints
These are the check constraints for this table:
- M_REQUISITIONLI_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
![]() | Back to org.openbravo.model.procurement |