ERP/2.50/Developers Guide/Database Model/org.openbravo.model.common.order/C Order Header V
C_Order_Header_V
- Name:OrderHeaderV
- Classname:OrderHeaderV
This table contains the following columns:
Name | Nullable | Data Type | Description |
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 |
AD_Language | Y | CHAR(5) | A method of communication being used. |
C_Order_ID | N | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order. |
IsSOTrx | N | CHAR(1) | An indication that a transfer of goods and money between business partners is occurring. |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
DocStatus | N | VARCHAR2(60) | The Document Status indicates the status of a document at this time. |
C_DocType_ID | N | VARCHAR2(32) | A value defining what sequence and process setup are used to handle this document. |
C_BPartner_ID | N | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
BPValue | N | NVARCHAR2(40) | Business Partner Key Value |
Org_Location_ID | Y | VARCHAR2(32) | Organization Location/Address |
TaxID | N | VARCHAR2(20) | The government defined unique number for assigning and paying taxes. |
DocumentType | N | NVARCHAR2(60) | Document Type |
DocumentTypeNote | Y | NVARCHAR2(2000) | Optional note of a document type |
SalesRep_ID | Y | VARCHAR2(32) | The person in charge of a document. |
SalesRep_Name | Y | NVARCHAR2(60) | null |
DateOrdered | N | DATE | The time listed on the order. |
DatePromised | Y | DATE | The date that a task, process, or action is to be completed or delivered by. |
BPGreeting | Y | NVARCHAR2(60) | Greeting for Business Partner |
Name | N | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
Name2 | Y | NVARCHAR2(60) | Additional space to write the name of a business partner. |
BPContactGreeting | Y | NVARCHAR2(60) | Greeting for Business Partner Contact |
Title | Y | NVARCHAR2(40) | A defined job, title, or ranking within a company. |
ContactName | Y | NVARCHAR2(60) | The name of the person to get in touch with. |
C_Location_ID | Y | VARCHAR2(32) | A specific place or residence. |
ReferenceNo | Y | NVARCHAR2(40) | The number for a specific reference. |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
POReference | Y | NVARCHAR2(20) | A reference or document order number as listed in business partner application. |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
PaymentTerm | N | NVARCHAR2(60) | Payment Term |
PaymentTermNote | Y | NVARCHAR2(2000) | Note of a Payment Term |
C_Charge_ID | Y | VARCHAR2(32) | A cost or expense incurred during business activity. |
ChargeAmt | Y | NUMBER | The amount of a cost or expense incurred during business activity. |
TotalLines | N | NUMBER | The final sum of all line totals made to a specified document or transaction (not including taxes). |
GrandTotal | N | NUMBER | The final monetary amount (including taxes) charge listed in a document. |
M_PriceList_ID | N | VARCHAR2(32) | A catalog of selected items with prices defined generally or for a specific partner. |
IsTaxIncluded | Y | CHAR(1) | Tax is included in the price |
C_Campaign_ID | Y | VARCHAR2(32) | An advertising effort aimed at increasing sales. |
C_Project_ID | Y | VARCHAR2(32) | Identifier of a project defined within the Project & Service Management module. |
C_Activity_ID | Y | VARCHAR2(32) | A distinct activity defined and used in activity based management. |
M_Shipper_ID | Y | VARCHAR2(32) | The name of the company making the shipment. |
DeliveryRule | N | VARCHAR2(60) | A definition stating when a specific delivery will occur. |
DeliveryViaRule | N | VARCHAR2(60) | The desired means of getting requested goods to a business partner. |
PriorityRule | N | VARCHAR2(60) | A defined level of importance or precedence. |
InvoiceRule | N | VARCHAR2(60) | Frequency and method of invoicing |
Columns
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
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)
Language
The Language identifies the language to use for display
- Physical column name: AD_Language
- Property Name: language
- Reference: String
Sales Order
Unique identifier and a reference to a Sales Order originating from the document sequence defined for this document type.
- Physical column name: C_Order_ID
- Property Name: id
- Reference: ID
- This column is part of the table's identifier
Sales Transaction
The Sales Transaction checkbox indicates if this item is a Sales Transaction.
- Physical column name: IsSOTrx
- Property Name: salesTransaction
- Reference: YesNo
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
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
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 Type
The Document Type determines document sequence and processing rules
- Physical column name: C_DocType_ID
- Property Name: documentType
- Reference: ID
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
- This column is part of the table's identifier
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
BP Search Key
Search Key of Business Partner
- Physical column name: BPValue
- Property Name: bPSearchKey
- Reference: String
Org Location
- Physical column name: Org_Location_ID
- Property Name: orgLocation
- Reference: Search
Foreign key column to Org_Location table, (column: null)
Tax ID
The Tax ID field identifies the legal Identification number of this Entity.
- Physical column name: TaxID
- Property Name: taxID
- Reference: String
Document Type Name
Document Type
- Physical column name: DocumentType
- Property Name: documentTypeName
- Reference: String
Document Type Note
Optional note of a document type
- Physical column name: DocumentTypeNote
- Property Name: documentTypeNote
- Reference: String
Sales Representative
- Physical column name: SalesRep_ID
- Property Name: salesRepresentative
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
Reference Table AD_User SalesRep With the following where clause:
EXISTS (SELECT * FROM C_BPartner bp WHERE AD_User.C_BPartner_ID=bp.C_BPartner_ID AND bp.IsSalesRep='Y')
Sales Representative Name
- Physical column name: SalesRep_Name
- Property Name: salesRepresentativeName
- Reference: String
Order Date
Indicates the Date an item was ordered.
- Physical column name: DateOrdered
- Property Name: orderDate
- Reference: Date
Scheduled Delivery Date
Scheduled Delivery Date indicates the date, if any, that an order was promised by.
- Physical column name: DatePromised
- Property Name: scheduledDeliveryDate
- Reference: Date
BP Greeting
Greeting for Business Partner
- Physical column name: BPGreeting
- Property Name: bPGreeting
- Reference: String
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
Name 2
Additional Name
- Physical column name: Name2
- Property Name: name2
- Reference: String
BP Contact Greeting
Greeting for Business Partner Contact
- Physical column name: BPContactGreeting
- Property Name: bPContactGreeting
- Reference: String
Position
The Title indicates the name that an entity is referred to as.
- Physical column name: Title
- Property Name: position
- Reference: String
Contact Name
Business Partner Contact Name
- Physical column name: ContactName
- Property Name: contactName
- Reference: String
Location / Address
- Physical column name: C_Location_ID
- Property Name: locationAddress
- Reference: Search
Foreign key column to C_Location table, (column: C_Location_ID)
Reference No.
The reference number can be printed on orders and invoices to allow your business partner to faster identify your records.
- Physical column name: ReferenceNo
- Property Name: referenceNo
- Reference: String
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Order Reference
This can be used to input a reference for this specific transaction. For example, a Purchase Order number can be input on a Sales Order for easier reference.
- Physical column name: POReference
- Property Name: orderReference
- 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)
Payment Term
Payment Term
- Physical column name: PaymentTerm
- Property Name: paymentTerm
- Reference: String
Payment Term Note
Note of a Payment Term
- Physical column name: PaymentTermNote
- Property Name: paymentTermNote
- Reference: String
Charge
- Physical column name: C_Charge_ID
- Property Name: charge
- Reference: TableDir
Foreign key column to C_Charge table, (column: C_Charge_ID)
Charge Amount
The Charge Amount indicates the amount for an additional charge.
- Physical column name: ChargeAmt
- Property Name: chargeAmount
- Reference: Amount
Summed Line Amount
The Total amount displays the total of all lines in document currency
- Physical column name: TotalLines
- Property Name: summedLineAmount
- Reference: Amount
Grand Total Amount
The Grand Total displays the total amount including Tax and Freight in document currency
- Physical column name: GrandTotal
- Property Name: grandTotalAmount
- Reference: Amount
Price List
- Physical column name: M_PriceList_ID
- Property Name: priceList
- Reference: TableDir
Foreign key column to M_PriceList table, (column: M_PriceList_ID)
Price includes Tax
The Tax Included checkbox indicates if the prices include tax. This is also known as the gross price.
- Physical column name: IsTaxIncluded
- Property Name: priceIncludesTax
- Reference: YesNo
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
Shipping Company
- Physical column name: M_Shipper_ID
- Property Name: shippingCompany
- Reference: TableDir
Foreign key column to M_Shipper table, (column: M_Shipper_ID)
Delivery Terms
The Delivery Rule indicates when an order should be delivered. For example should the order be delivered when the entire order is complete, when a line is complete or as the products become available.
- Physical column name: DeliveryRule
- Property Name: deliveryTerms
- Reference: List
List values: C_Order DeliveryRule
The allowed values for this list are:
- A (Availability): As soon as an item becomes available
- L (Complete Line): As soon as all items of a line become available
- O (Complete Order): As soon as all items of an order are available
- R (After Receipt): After receipt of cash
Delivery Method
The Delivery Via indicates how the products should be delivered. For example, will the order be picked up or shipped.
- Physical column name: DeliveryViaRule
- Property Name: deliveryMethod
- Reference: List
List values: C_Order DeliveryViaRule
The allowed values for this list are:
- D (Delivery)
- P (Pickup)
- S (Shipper)
Priority
The Priority indicates the importance (high, medium, low) of this document
- Physical column name: PriorityRule
- Property Name: priority
- Reference: List
List values: All_PriorityRule
The allowed values for this list are:
- 3 (High): High priority
- 5 (Medium): Medium Priority
- 7 (Low): Low priority
Invoice Terms
The Invoice Rule defines how a Business Partner is invoiced and the frequency of invoicing.
- Physical column name: InvoiceRule
- Property Name: invoiceTerms
- Reference: List
List values: C_Order InvoiceRule
The allowed values for this list are:
- D (After Delivery): Invoice per Delivery
- I (Immediate): Immediate Invoice
- N (Do Not Invoice): Order should not be invoiced trough Process Invoice
- O (After Order Delivered): Invoice for every order
- S (Customer Schedule After Delivery): Invoice per Customer Invoice Schedule