ERP 2.50:Developers Guide/Database Model/org.openbravo.model.common.order/C Order Open
C_Order_Open
- Name:OrderOpen
- Classname:OpenOrder
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 |
C_Order_ID | N | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order. |
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. |
C_DocType_ID | N | VARCHAR2(32) | A value defining what sequence and process setup are used to handle this document. |
SalesRep_ID | Y | VARCHAR2(32) | The person in charge of a document. |
C_BPartner_ID | N | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
C_BPartner_Location_ID | N | VARCHAR2(32) | The location of the selected business partner. |
AD_User_ID | Y | VARCHAR2(32) | An acquaintance to reach for information related to the business partner. |
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. |
IsSOTrx | N | CHAR(1) | An indication that a transfer of goods and money between business partners is occurring. |
C_OrderLine_ID | N | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order line. |
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. |
M_Product_ID | Y | VARCHAR2(32) | An item produced by a process. |
M_Warehouse_ID | N | VARCHAR2(32) | The location where products arrive to or are sent from. |
DirectShip | N | CHAR(1) | Ship direct from Vendor to Customer |
C_UOM_ID | N | VARCHAR2(32) | A non monetary unit of measure. |
QtyOrdered | N | NUMBER | The number of an item involved in a transaction, given in standard units. It is used to determine price per unit. |
QtyReserved | N | NUMBER | Reserved Quantity |
QtyDelivered | N | NUMBER | Delivered Quantity |
QtyInvoiced | N | NUMBER | The total number of a product included in an invoice to a business partner. |
PriceActual | N | NUMBER | The price that will be paid for a specified item. |
QtyToDeliver | Y | NUMBER | null |
QtyToInvoice | Y | NUMBER | null |
NetAmtToInvoice | Y | NUMBER | Net amount of this Invoice |
Columns
Client
- Physical column name: AD_Client_ID
- 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
- 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
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Reference: DateTime
Created By
- Physical column 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
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Sales Order
- Physical column name: C_Order_ID
- Reference: Search
- This column is part of the table's identifier
Foreign key column to C_Order table, (column: C_Order_ID)
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
- Reference: List
List values: All_Document Status
The allowed values for this list are:
- DR (Draft)
- CO (Completed)
- AP (Accepted)
- CH (Modified)
- NA (Not Accepted)
- TE (Transfer Error)
- PR (Printed)
- TR (Transferred)
- VO (Voided)
- IN (Inactive)
- PE (Accounting Error)
- PO (Posted)
- RE (Re-Opened)
- CL (Closed)
- ?? (Unknown)
- XX (Procesando)
- IP (Under Way)
- WP (Not Paid)
Document Action
You find the current status in the Document Status field. The options are listed in a popup
- Physical column name: DocAction
- Reference: List
List values: All_Document Action
The allowed values for this list are:
- -- (<None>): No action
- AP (Approve): Approve this transaction
- CL (Close): Finally close this transaction. It cannot be re-activated.
- CO (Complete): Generate documents and complete transaction
- PO (Post): Post transaction
- PR (Process): Reserve Inventory
- RA (Reverse - Accrual): Reverse by switching Dr/Cr with current date
- RC (Void): Reverse Transaction (correction) by reversing sign with same date
- RE (Reactivate): Reverse documents/inventory and allow changes; You need to Complete the transaction after the change.
- RJ (Reject): Reject the approval of the document.
- TR (Transfer)
- VO (Void): Set all quantities to zero and complete transaction
- XL (Unlock): Unlock transaction (process error)
Document Type
- Physical column name: C_DocType_ID
- Reference: TableDir
Foreign key column to C_DocType table, (column: C_DocType_ID)
Sales Representative
- Physical column name: SalesRep_ID
- 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')
Business Partner
- Physical column name: C_BPartner_ID
- Reference: TableDir
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Partner Address
- Physical column name: C_BPartner_Location_ID
- Reference: TableDir
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
User/Contact
- Physical column name: AD_User_ID
- Reference: TableDir
Foreign key column to AD_User table, (column: AD_User_ID)
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
- Reference: String
Currency
- Physical column name: C_Currency_ID
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Sales Transaction
The Sales Transaction checkbox indicates if this item is a Sales Transaction.
- Physical column name: IsSOTrx
- Reference: YesNo
Sales Order Line
- Physical column name: C_OrderLine_ID
- Reference: Search
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
Order Date
Indicates the Date an item was ordered.
- Physical column name: DateOrdered
- Reference: Date
Scheduled Delivery Date
Scheduled Delivery Date indicates the date, if any, that an order was promised by.
- Physical column name: DatePromised
- Reference: Date
Product
- Physical column name: M_Product_ID
- Reference: TableDir
Foreign key column to M_Product table, (column: M_Product_ID)
Warehouse
- Physical column name: M_Warehouse_ID
- Reference: TableDir
Foreign key column to M_Warehouse table, (column: M_Warehouse_ID)
Direct shipment
Direct Shipment indicates if this line will ship directly from the vendor to the customer
- Physical column name: DirectShip
- Reference: YesNo
UOM
- Physical column name: C_UOM_ID
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
Ordered Quantity
The Ordered Quantity indicates the quantity of a product that was ordered.
- Physical column name: QtyOrdered
- Reference: Quantity
Reserved Quantity
The Reserved Quantity indicates the quantity of a product that is currently reserved for this order.
- Physical column name: QtyReserved
- Reference: Quantity
Delivered Quantity
The Delivered Quantity indicates the quantity of a product that has already been delivered.
- Physical column name: QtyDelivered
- Reference: Quantity
Invoiced Quantity
The Invoiced Quantity indicates the quantity of a product that have been invoiced.
- Physical column name: QtyInvoiced
- Reference: Quantity
Unit Price
The actual price indicates the price for a product in source currency.
- Physical column name: PriceActual
- Reference: Price
Qty to deliver
- Physical column name: QtyToDeliver
- Reference: Quantity
Qty to invoice
- Physical column name: QtyToInvoice
- Reference: Quantity
Invoice net Amount
Indicates the net amount for this invoice. It does not include shipping or any additional charges.
- Physical column name: NetAmtToInvoice
- Reference: Amount