ERP/2.50/Developers Guide/Database Model/org.openbravo.model.procurement/M Requisition
M_Requisition
This table contains the headers of products demand. In the header it can be set a preferred vendor and/or price list. The requisitions are owned by an user of the ERP and have different statuses, each of them allowing different actions.In this window users manage only his own requisitions.
- Name:ProcurementRequisition
- Classname:Requisition
This table contains the following columns:
Name | Nullable | Data Type | Description |
M_Requisition_ID | N | VARCHAR2(32) | null |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
Createdby | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
Updatedby | N | VARCHAR2(32) | User who updated this records |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
M_PriceList_ID | Y | VARCHAR2(32) | A catalog of selected items with prices defined generally or for a specific partner. |
C_Currency_ID | Y | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
Createpo | N | CHAR(1) | null |
DocStatus | N | VARCHAR2(60) | The Document Status indicates the status of a document at this time. |
DocAction | N | VARCHAR2(60) | A means of changing the transaction status of the document. |
Processed | N | CHAR(1) | A confirmation that the associated documents or requests are processed. |
AD_User_ID | N | VARCHAR2(32) | null |
Processing | N | CHAR(1) | A request to process the respective document or task. |
Other Info
Check constraints
These are the check constraints for this table:
- M_REQUISITION_CREATEPO_CHECK: CREATEPO IN ('Y', 'N')
- M_REQUISITION_ISACTIVE_CHECK: ISACTIVE 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
- M_REQUISITION_KEY
Columns
Requisition
The ID identifies a unique requisition
- Physical column name: M_Requisition_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)
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
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
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
- 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)
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Document No.
The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
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
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner Java class.
Price List
- Physical column name: M_PriceList_ID
- Property Name: priceList
- Reference: TableDir
Foreign key column to M_PriceList table, (column: M_PriceList_ID)
Validation Rule Purchase Pricelist: Purchase Pricelist. With the following code:
M_Pricelist.IsSOPricelist='N'
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Validation Rule C_Currency of PriceList: Sets the currency of the pricelist. With the following code:
C_Currency.C_Currency_ID IN (SELECT C_Currency_ID FROM M_Pricelist WHERE ISACTIVE='Y')
Create PO
Button to generate the corresponding purchase orders to fulfill the products demand.
- Physical column name: Createpo
- Property Name: createPO
- Reference: Button
- Default value: N
Document Status
The Document Status indicates the status of a document at this time. To change the status of a document, use one of the buttons usually located at the bottom of the document window.
- Physical column name: DocStatus
- Property Name: documentStatus
- Reference: List
- Default value: DR
List values: All_Document Status
The allowed values for this list are:
- ?? (Unknown)
- AP (Accepted)
- CH (Modified)
- CL (Closed)
- CO (Completed)
- DR (Draft)
- IN (Inactive)
- IP (Under Way)
- NA (Not Accepted)
- PE (Accounting Error)
- PO (Posted)
- PR (Printed)
- RE (Re-Opened)
- TE (Transfer Error)
- TR (Transferred)
- VO (Voided)
- WP (Not Paid)
- XX (Procesando)
Document Action
You find the current status in the Document Status field. The options are listed in a popup
- Physical column name: DocAction
- Property Name: documentAction
- Reference: Button
- Default value: CO
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Requester
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: TableDir
- Default value: @#AD_User_ID@
Foreign key column to AD_User table, (column: AD_User_ID)
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: YesNo
- Default value: N