ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.order/C Order
C_Order
- Name:C_Order
- Classname:Order
This table contains the following columns:
Name | Nullable | Data Type | Description
|
User1_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
User2_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
DateAcct | No | TIMESTAMP (7) | The date this transaction is recorded on in the general ledger. This date also indicates which accounting period within the fiscal year this transaction will be part of. |
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. |
C_Activity_ID | Yes | VARCHAR (32) | Activities indicate tasks that are performed and used to utilize Activity based Costing |
A_Asset_ID | Yes | VARCHAR (32) | Any item of economic value owned by the corporation, especially that which could be converted to cash. |
C_BPartner_ID | No | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
C_Alternate_Location_ID | Yes | VARCHAR (32) | Different delivery location where to deliver the order. This location does not have to be part of business partner locations. Used just once, so no need to store it as part of the business partner locations. |
C_Return_Reason_ID | Yes | VARCHAR (32) | |
Calculate_Promotions | Yes | VARCHAR (1) | |
Cancelandreplace | Yes | CHAR (1) | Button that creates a temporal duplicated order |
Cancelledorder_id | Yes | VARCHAR (32) | Link to the order that has been canceled |
Iscashvat | No | CHAR (1) | Cash VAT tax rate |
C_Charge_ID | Yes | VARCHAR (32) | The Charge indicates a type of Charge (Handling, Shipping, Restocking) |
ChargeAmt | Yes | DECIMAL | The Charge Amount indicates the amount for an additional charge. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Confirmcancelandreplace | Yes | CHAR (1) | Button that confirms the temporal Order by closing it and creates a canceled order |
CopyFrom | Yes | CHAR (1) | Copy lines (products) from another document of the same type. |
CopyFromPO | Yes | CHAR (1) | Copy lines from orders |
C_Costcenter_ID | Yes | VARCHAR (32) | Division that adds to the cost of an organization. Internal structure for cost allocation. |
Convertquotation | Yes | CHAR (1) | |
Create_POLines | Yes | CHAR (1) | |
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 | No | VARCHAR (32) | Indicates the currency to be used when processing this document. |
DatePrinted | Yes | TIMESTAMP (7) | Indicates the Date that a document was printed. |
IsDelivered | No | CHAR (1) | |
Delivery_Location_ID | Yes | VARCHAR (32) | Location where the product will be delivered to |
DeliveryViaRule | No | VARCHAR (60) | The Delivery Via indicates how the products should be delivered. For example, will the order be picked up or shipped. |
DeliveryRule | No | VARCHAR (60) | 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. |
Deliverynotes | Yes | NVARCHAR (2000) | Notes for the delivery |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
DocAction | No | VARCHAR (60) |
You find the current status in the Document Status field. The options are listed in a popup |
DocumentNo | No | NVARCHAR (30) | 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). |
DocStatus | No | VARCHAR (60) | 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. |
C_DocType_ID | No | VARCHAR (32) | The Document Type determines document sequence and processing rules |
DropShip_User_ID | Yes | VARCHAR (32) | Business Partner Contact for Drop Shipment |
DropShip_Location_ID | Yes | VARCHAR (32) | Business Partner Shipment Location for Drop Shipment |
DropShip_BPartner_ID | Yes | VARCHAR (32) | Business Partner for Drop Shipment |
EM_APRM_AddPayment | Yes | CHAR (1) | Launches a process to add a payment to the selected invoice. |
BPartner_ExtRef | Yes | NVARCHAR (256) | This field stores the business partner reference to an external CRM system. This is useful only when the business partner management is done outside Openbravo. In this case Openbravo will internally use the anonymous customer but it will track the real customer in the external system through this field. |
FIN_Payment_Priority_ID | Yes | VARCHAR (32) | Sets the priority of the payment plans generated when processing the invoice or order.
The distribution algorithm will be driven by this priority. The pending payments for order or payments will be displayed ordered by the payment priority first and then by the due date. |
PaymentRule | No | VARCHAR (60) | Form of Payment indicates the method of payment used for this transaction (eg. cash, wire transfer, etc.) |
FreightAmt | No | DECIMAL | The Freight Amount indicates the amount charged for Freight in the document currency. |
FreightCostRule | No | VARCHAR (60) | The Freight Cost Rule indicates the method used when charging for freight. |
Generatetemplate | Yes | CHAR (1) | A button that copies the products that are defined as template in the business partner window |
GrandTotal | No | DECIMAL | The Grand Total displays the total amount including Tax and Freight in document currency |
Incotermsdescription | Yes | NVARCHAR (255) | Description of the incoterm |
C_Incoterms_ID | Yes | VARCHAR (32) | The ID identifies a unique Incoterm |
BillTo_ID | No | VARCHAR (32) | An indication of the address to use in the invoice. |
InvoiceRule | No | VARCHAR (60) | The Invoice Rule defines how a Business Partner is invoiced and the frequency of invoicing. |
Iscancelled | No | CHAR (1) | The Sales Order has been canceled and canceled and replaced. A new Cancellation Sales Order has been created in Closed Status and if it is replaced also a new Sales Order in Book Status has been created replacing the original one. |
DateOrdered | No | TIMESTAMP (7) | Indicates the Date an item was ordered. |
POReference | Yes | NVARCHAR (20) | 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. |
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. |
C_BPartner_Location_ID | No | VARCHAR (32) | The Partner address indicates the location of a Business Partner |
FIN_Paymentmethod_ID | Yes | VARCHAR (32) | |
C_PaymentTerm_ID | No | VARCHAR (32) | Payment Terms identify the method and timing of payment for this transaction. |
Posted | No | VARCHAR (60) | An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand. |
M_PriceList_ID | No | VARCHAR (32) |
Price Lists are used to determine the pricing, margin and cost of items purchased or sold. |
IsTaxIncluded | Yes | CHAR (1) | The Tax Included checkbox indicates if the prices include tax. This is also known as the gross price. |
IsPrinted | No | CHAR (1) | The Printed checkbox indicates if this document or line will included when printing. |
IsDiscountPrinted | No | CHAR (1) | The Discount Printed Checkbox indicates if the discount will be printed on the document. |
PriorityRule | No | VARCHAR (60) | The Priority indicates the importance (high, medium, low) of this document |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | No | CHAR (1) | The Processed checkbox indicates that a document has been processed. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
Quotation_ID | Yes | VARCHAR (32) | |
RM_AddOrphanLine | Yes | CHAR (1) | |
RM_CreateInvoice | Yes | VARCHAR (60) | |
RM_PickFromShipment | Yes | CHAR (1) | |
RM_Pickfromreceipt | Yes | CHAR (1) | |
RM_ReceiveMaterials | Yes | CHAR (1) | |
IsInvoiced | No | CHAR (1) | Indicator if invoiced |
C_Reject_Reason_ID | Yes | VARCHAR (32) | |
Replacedorder_id | Yes | VARCHAR (32) | Link to the order that has been replaced |
Replacementorder_ID | Yes | VARCHAR (32) | Link to the replacement order. This order is the order that has replaced the current Cancelled order. |
SO_Res_Status | Yes | VARCHAR (60) | Identifies if the Sales Order is completely or partially reserved |
C_Campaign_ID | Yes | VARCHAR (32) | The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign. |
C_Order_ID | No | VARCHAR (32) | Unique identifier and a reference to a Sales Order originating from the document sequence defined for this document type. |
SalesRep_ID | Yes | VARCHAR (32) | Indicates the sales representative responsible for the transaction that the document specifies . A valid sales representative is a business partner marked as an employee and a sales representative. |
IsSOTrx | No | CHAR (1) | The Sales Transaction checkbox indicates if this item is a Sales Transaction. |
DatePromised | No | TIMESTAMP (7) | Scheduled Delivery Date indicates the date, if any, that an order was promised by. |
IsSelected | No | CHAR (1) | |
IsSelfService | No | CHAR (1) | Self-Service allows users to enter data or update their data. The flag indicates, that this record was entered or created via Self-Service or that the user can change it via the Self-Service functionality. |
M_Shipper_ID | Yes | VARCHAR (32) | The Shipper is any entity which will provide shipping to or shipping from an Organization. |
TotalLines | No | DECIMAL | The Total amount displays the total of all lines in document currency |
C_DocTypeTarget_ID | No | VARCHAR (32) | Specifies document subtype (eg. POS Order, Return Material, etc.) that each document (such as Sales Invoice, Purchase Order, etc.). Various document subtypes usually differ on the consequences they have. You can convert document types (e.g. from Offer to Order). The conversion is then reflected in the current type. |
AD_OrgTrx_ID | Yes | VARCHAR (32) | The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions. |
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. |
AD_User_ID | Yes | VARCHAR (32) | The User identifies a unique user in the system. This could be an internal user or a business partner contact |
validuntil | Yes | TIMESTAMP (7) | |
M_Warehouse_ID | No | VARCHAR (32) | The Warehouse identifies a unique Warehouse where products are stored or Services are provided. |
Columns
1st Dimension
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User1 table, (column: User1_ID)
2nd Dimension
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User2 table, (column: User2_ID)
Accounting Date
- Physical column name: DateAcct
- Property Name: accountingDate
- Reference: Date
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
Asset
- Physical column name: A_Asset_ID
- Property Name: asset
- Reference: OBUISEL_Selector Reference
Foreign key column to A_Asset table, (column: A_Asset_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: SE_Order_BPartner
This column has a callout associated.
It is implemented by [1] Java Class.
C_Alternate_Location_ID
- Physical column name: C_Alternate_Location_ID
- Property Name: alternateLocation
- Reference: Search
Foreign key column to C_Location table, (column: C_Location_ID)
C_Return_Reason_ID
- Physical column name: C_Return_Reason_ID
- Property Name: returnReason
- Reference: TableDir
Foreign key column to C_Return_Reason table, (column: C_Return_Reason_ID)
It has a validation "Return reason RFC/RTV", with the following code
(C_RETURN_REASON.ISRFC = @ISSOTRX@ OR C_RETURN_REASON.ISRTV=(case when @ISSOTRX@='N' then 'Y' else 'N' end))
Calculate_Promotions
- Physical column name: Calculate_Promotions
- Property Name: calculatePromotions
- Reference: Button
Cancelandreplace
- Physical column name: Cancelandreplace
- Property Name: cancelandreplace
- Reference: Button
Cancelledorder
- Physical column name: Cancelledorder_id
- Property Name: cancelledorder
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Order table, (column: C_Order_ID)
Cash VAT
- Physical column name: Iscashvat
- Property Name: cashVAT
- Reference: YesNo
- Default value: N
Charge
- Physical column name: C_Charge_ID
- Property Name: charge
- Reference: Table
Foreign key column to C_Charge table, (column: C_Charge_ID)
Callout: SL_Charge
This column has a callout associated.
It is implemented by [2] Java Class.
Charge Amount
- Physical column name: ChargeAmt
- Property Name: chargeAmount
- Reference: Amount
- Default value: 0
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Confirmcancelandreplace
- Physical column name: Confirmcancelandreplace
- Property Name: confirmcancelandreplace
- Reference: Button
Copy from
- Physical column name: CopyFrom
- Property Name: copyFrom
- Reference: Button
Copy from PO
- Physical column name: CopyFromPO
- Property Name: copyFromPO
- Reference: Button
Costcenter
- Physical column name: C_Costcenter_ID
- Property Name: costcenter
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Costcenter table, (column: C_Costcenter_ID)
Create Order
- Physical column name: Convertquotation
- Property Name: createOrder
- Reference: Button
Create PO Lines
- Physical column name: Create_POLines
- Property Name: createPOLines
- Reference: Button
- Default value: N
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)
Date printed
- Physical column name: DatePrinted
- Property Name: datePrinted
- Reference: Date
Delivered
- Physical column name: IsDelivered
- Property Name: delivered
- Reference: YesNo
- Default value: N
Delivery Location
- Physical column name: Delivery_Location_ID
- Property Name: deliveryLocation
- Reference: Table
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
It has a validation "C_BPartner Location - Ship To", with the following code
C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsShipTo='Y' AND C_BPartner_Location.IsActive='Y'
Delivery Method
- Physical column name: DeliveryViaRule
- Property Name: deliveryMethod
- Reference: List
List values: C_Order DeliveryViaRule
The allowed values for this list are:
- P (Pickup)
- D (Delivery)
- S (Shipper)
Delivery Terms
- Physical column name: DeliveryRule
- Property Name: deliveryTerms
- Reference: List
List values: C_Order DeliveryRule
The allowed values for this list are:
- R (After Receipt): After receipt of cash
- 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
Delivery notes
- Physical column name: Deliverynotes
- Property Name: deliveryNotes
- Reference: Text
Description
- Physical column name: Description
- Property Name: description
- Reference: Text
Document Action
- Physical column name: DocAction
- Property Name: documentAction
- Reference: List
List values: Order_Document Action
The allowed values for this list are:
- PR (Process): Reserve Inventory
- TR (Transfer)
- CO (Book): Generate documents and complete transaction
- PO (Post): Post transaction
- XL (Unlock): Unlock transaction (process error)
- -- (<None>): No action
- RC (Void): Reverse Transaction (correction) by reversing sign with same date
- RJ (Reject): Reject the approval of the document.
- RE (Reactivate): Reverse documents/inventory and allow changes; You need to Complete the transaction after the change.
- VO (Void): Set all quantities to zero and complete transaction
- RA (Reverse - Accrual): Reverse by switching Dr/Cr with current date
- CL (Close): Finally close this transaction. It cannot be re-activated.
- AP (Approve): Approve this transaction
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Document Status
- Physical column name: DocStatus
- Property Name: documentStatus
- Reference: List
List values: Order_Document Status
The allowed values for this list are:
- ?? (Unknown)
- NA (Not Accepted)
- IP (Under Way)
- CH (Modified)
- AP (Accepted)
- PR (Printed)
- PE (Accounting Error)
- VO (Voided)
- XX (Procesando)
- RE (Re-Opened)
- TR (Transferred)
- ME (Manual Evaluation)
- TE (Transfer Error)
- IN (Inactive)
- CJ (Closed - Rejected)
- UE (Under Evaluation)
- AE (Automatic Evaluation)
- DR (Draft)
- CA (Closed - Order Created)
- TMP (Temporal)
- CO (Booked)
- PO (Posted)
- NC (Not Confirmed)
- CL (Closed)
- WP (Not Paid)
Document Type
- Physical column name: C_DocType_ID
- Property Name: documentType
- Reference: TableDir
Foreign key column to C_DocType table, (column: C_DocType_ID)
Drop Ship Contact
- Physical column name: DropShip_User_ID
- Property Name: dropShipContact
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
It has a validation "AD_User C_BPartner User/Contacts Drop", with the following code
AD_User.C_BPartner_ID=@DropShip_BPartner_ID@
Drop Ship Location
- Physical column name: DropShip_Location_ID
- Property Name: dropShipLocation
- Reference: Table
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
It has a validation "C_BPartner Location - Drop Ship To", with the following code
C_BPartner_Location.C_BPartner_ID=@DropShip_BPartner_ID@ AND C_BPartner_Location.IsShipTo='Y'
Drop Ship Partner
- Physical column name: DropShip_BPartner_ID
- Property Name: dropShipPartner
- Reference: OBUISEL_Selector Reference
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
EM_APRM_AddPayment
- Physical column name: EM_APRM_AddPayment
- Property Name: aPRMAddPayment
- Reference: Button
External Business Partner Reference
- Physical column name: BPartner_ExtRef
- Property Name: externalBusinessPartnerReference
- Reference: String
FIN_Payment_Priority_ID
- Physical column name: FIN_Payment_Priority_ID
- Property Name: fINPaymentPriority
- Reference: TableDir
Foreign key column to FIN_Payment_Priority table, (column: FIN_Payment_Priority_ID)
Form of Payment
- Physical column name: PaymentRule
- Property Name: formOfPayment
- Reference: List
List values: All_Payment Rule
The allowed values for this list are:
- B (Cash): Cash payments that generate an automatic accounting line.
- K (Credit Card)
- T (Transfer (ACH))
- P (On Credit): Cash payments that do not generate an automatic accounting line. Its is not an automatic cash entry.
- 1 (Wire Transfer): Wire Transfer
- 2 (Check): Check
- 3 (Promissory Note): Promissory Note
- C (Cash on Delivery): Cash on Delivery
- 4 (Money Order)
- 5 (Bank Deposit)
- R (Bank Remittance)
- W (Withholding)
Freight Amount
- Physical column name: FreightAmt
- Property Name: freightAmount
- Reference: Amount
- Default value: 0
Freight Cost Rule
- Physical column name: FreightCostRule
- Property Name: freightCostRule
- Reference: List
List values: C_Order FreightCostRule
The allowed values for this list are:
- I (Freight included): Freight cost included
- F (Fix price): Fixed freight price
- C (Calculated): Calculated based on Product Freight Rule
- L (Line): Entered at Line level
Generate template
- Physical column name: Generatetemplate
- Property Name: generateTemplate
- Reference: Button
Grand Total Amount
- Physical column name: GrandTotal
- Property Name: grandTotalAmount
- Reference: Amount
- Default value: 0
- This column is part of the table's identifier
INCOTERMS description
- Physical column name: Incotermsdescription
- Property Name: iNCOTERMSDescription
- Reference: Text
Incoterms
- Physical column name: C_Incoterms_ID
- Property Name: incoterms
- Reference: TableDir
Foreign key column to C_Incoterms table, (column: C_Incoterms_ID)
Invoice Address
- Physical column name: BillTo_ID
- Property Name: invoiceAddress
- Reference: Table
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
It has a validation "C_BPartner Location - Bill To", with the following code
C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsBillTo='Y' AND C_BPartner_Location.IsActive='Y'
Invoice Terms
- Physical column name: InvoiceRule
- Property Name: invoiceTerms
- Reference: List
It has a validation "Invoice Rules for POS Sales orders", with the following code
(AD_Ref_List.value IN ('I', 'D', 'O') OR (SELECT DOCSUBTYPESO FROM C_DOCTYPE WHERE C_DOCTYPE.C_DOCTYPE_ID = @C_DOCTYPETARGET_ID@) <> 'WR')
List values: C_Order InvoiceRule
The allowed values for this list are:
- O (After Order Delivered): Invoice for every order
- D (After Delivery): Invoice per Delivery
- S (Customer Schedule After Delivery): Invoice per Customer Invoice Schedule
- I (Immediate): Immediate Invoice
- N (Do Not Invoice): Order should not be invoiced trough Process Invoice
Iscancelled
- Physical column name: Iscancelled
- Property Name: iscancelled
- Reference: YesNo
- Default value: N
Order Date
- Physical column name: DateOrdered
- Property Name: orderDate
- Reference: Date
- This column is part of the table's identifier
Callout: SL_Order_UpdateLinesDate
This column has a callout associated.
It is implemented by [3] Java Class.
Order Reference
- Physical column name: POReference
- Property Name: orderReference
- Reference: String
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org (without *)", with the following code
AD_ORG_ID <> '0'
Callout: SE_Order_Organization
This column has a callout associated.
It is implemented by [4] Java Class.
Partner Address
- Physical column name: C_BPartner_Location_ID
- Property Name: partnerAddress
- Reference: TableDir
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
It has a validation "C_BPartner Location - Ship To", with the following code
C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsShipTo='Y' AND C_BPartner_Location.IsActive='Y'
Callout: SE_Order_BPartnerLocation
This column has a callout associated.
It is implemented by [5] Java Class.
Payment Method
- Physical column name: FIN_Paymentmethod_ID
- Property Name: paymentMethod
- Reference: TableDir
Foreign key column to FIN_PaymentMethod table, (column: Fin_Paymentmethod_ID)
It has a validation "FIN_PaymentMethodsWithAccountIsSOTrxControl", with the following code
EXISTS (SELECT 1 FROM FIN_FinAcc_PaymentMethod fapm WHERE FIN_PaymentMethod.FIN_PaymentMethod_ID=fapm.FIN_PaymentMethod_ID
AND fapm.Payin_Allow = (SELECT CASE WHEN '@IsSOTrx@'='Y' THEN 'Y' ELSE fapm.Payin_Allow END FROM DUAL) AND fapm.Payout_Allow = (SELECT CASE WHEN '@IsSOTrx@'='N' THEN 'Y' ELSE fapm.Payout_Allow END FROM DUAL))
Payment Terms
- Physical column name: C_PaymentTerm_ID
- Property Name: paymentTerms
- Reference: TableDir
Foreign key column to C_PaymentTerm table, (column: C_PaymentTerm_ID)
Posted
- Physical column name: Posted
- Property Name: posted
- Reference: List
- Default value: N
List values: All_Posted Status
The allowed values for this list are:
- N (Post)
- Y (Unpost)
- b (Post: Not Balanced)
- c (Post: Not Convertible (no rate))
- p (Post: Period Closed)
- y (Post: Post Prepared)
- i (Post: Invalid Account)
- E (Post: Error)
- NC (Post: Cost Not Calculated)
- AD (Post: No Accounting Date)
- T (Post: Table Disabled)
- C (Post: Error, No cost)
- d (Post: Disabled For Background)
- L (Post: Document Locked)
- NO (Post: No Related PO)
- D (Post: Document Disabled): Document disabled for accounting
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 "Price List isSOTrx", with the following code
M_PriceList.issopricelist = @isSOTrx@
Callout: SL_Order_PriceList
This column has a callout associated.
It is implemented by [6] Java Class.
Price includes Tax
- Physical column name: IsTaxIncluded
- Property Name: priceIncludesTax
- Reference: YesNo
- Default value: N
- Physical column name: IsPrinted
- Property Name: print
- Reference: YesNo
- Default value: N
Print Discount
- Physical column name: IsDiscountPrinted
- Property Name: printDiscount
- Reference: YesNo
- Default value: Y
Priority
- 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
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: Search
Foreign key column to C_Project table, (column: C_Project_ID)
It has a validation "C_Project based on status and bpartner", with the following code
C_Project.projectstatus in ('OP', 'OR') and (C_Project.c_bpartner_id=@C_BPartner_ID@ or '@IsSOTrx@'='N') or C_Project.c_project_id = @c_project_id@
Callout: SE_Order_Project
This column has a callout associated.
It is implemented by [7] Java Class.
Quotation
- Physical column name: Quotation_ID
- Property Name: quotation
- Reference: Search
Foreign key column to C_Order table, (column: C_Order_ID)
RM_AddOrphanLine
- Physical column name: RM_AddOrphanLine
- Property Name: addOrphanLine
- Reference: Button
RM_CreateInvoice
- Physical column name: RM_CreateInvoice
- Property Name: createInvoice
- Reference: Button
RM_PickFromShipment
- Physical column name: RM_PickFromShipment
- Property Name: pickFromShipment
- Reference: Button
RM_Pickfromreceipt
- Physical column name: RM_Pickfromreceipt
- Property Name: pickfromreceipt
- Reference: Button
RM_ReceiveMaterials
- Physical column name: RM_ReceiveMaterials
- Property Name: receiveMaterials
- Reference: Button
Re-invoice
- Physical column name: IsInvoiced
- Property Name: reinvoice
- Reference: YesNo
- Default value: N
Reject Reason
- Physical column name: C_Reject_Reason_ID
- Property Name: rejectReason
- Reference: TableDir
Foreign key column to C_Reject_Reason table, (column: C_Reject_Reason_ID)
Replacedorder
- Physical column name: Replacedorder_id
- Property Name: replacedorder
- Reference: Table
Foreign key column to C_Order table, (column: C_Order_ID)
Replacementorder_ID
- Physical column name: Replacementorder_ID
- Property Name: replacementorder
- Reference: Table
Foreign key column to C_Order table, (column: C_Order_ID)
Reservation Status
- Physical column name: SO_Res_Status
- Property Name: reservationStatus
- Reference: List
List values: SO_Res_Status
The allowed values for this list are:
- PR (Partially Reserved)
- NR (Not Reserved)
- CR (Completely Reserved)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Sales Order
- Physical column name: C_Order_ID
- Property Name: id
- Reference: ID
Sales Representative
- Physical column name: SalesRep_ID
- Property Name: salesRepresentative
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
It has a validation "AD_User - Org Tree", with the following code
AD_ISORGINCLUDED(@AD_Org_ID@, td0.AD_Org_ID, @#AD_Client_ID@) <> '-1'
Sales Transaction
- Physical column name: IsSOTrx
- Property Name: salesTransaction
- Reference: YesNo
- Default value: Y
Scheduled Delivery Date
- Physical column name: DatePromised
- Property Name: scheduledDeliveryDate
- Reference: Date
Callout: SL_Order_UpdateLinesDate
This column has a callout associated.
It is implemented by [8] Java Class.
Selected
- Physical column name: IsSelected
- Property Name: selected
- Reference: YesNo
- Default value: N
Self-Service
- Physical column name: IsSelfService
- Property Name: selfService
- Reference: YesNo
- Default value: N
Shipping Company
- Physical column name: M_Shipper_ID
- Property Name: shippingCompany
- Reference: TableDir
Foreign key column to M_Shipper table, (column: M_Shipper_ID)
Summed Line Amount
- Physical column name: TotalLines
- Property Name: summedLineAmount
- Reference: Amount
- Default value: 0
Transaction Document
- Physical column name: C_DocTypeTarget_ID
- Property Name: transactionDocument
- Reference: Table
Foreign key column to C_DocType table, (column: C_DocType_ID)
It has a validation "C_DocType PO/SO", with the following code
C_DocType.DocBaseType IN ('SOO', 'POO') AND C_DocType.IsSOTrx='@IsSOTrx@'
AND (AD_ISORGINCLUDED(@AD_Org_ID@,C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1' OR COALESCE(@AD_Org_ID@,'-1')='-1') AND COALESCE(@isReturnMaterial@, 'N') = C_DocType.IsReturn AND ((@isQuotation@='Y' AND docsubtypeso like 'OB') OR ((@isQuotation@='N' OR @isQuotation@ is null) AND (docsubtypeso is null OR docsubtypeso not like 'OB')))
Callout: SL_Order_DocType
This column has a callout associated.
It is implemented by [9] Java Class.
Trx Organization
- Physical column name: AD_OrgTrx_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
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)
User/Contact
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: TableDir
Foreign key column to AD_User table, (column: AD_User_ID)
It has a validation "AD_User C_BPartner User/Contacts", with the following code
AD_User.C_BPartner_ID=@C_BPartner_ID@
Valid Until
- Physical column name: validuntil
- Property Name: validUntil
- Reference: Date
Warehouse
- Physical column name: M_Warehouse_ID
- Property Name: warehouse
- Reference: OBUISEL_Selector Reference
Foreign key column to M_Warehouse table, (column: M_Warehouse_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):
- C_ORDER_AD_USER Not Unique. Columns:
- AD_USER_ID
- C_ORDER_BPARTNER_DATEORDERED Not Unique. Columns:
- C_BPARTNER_ID
- DATEORDERED
- C_ORDER_BPARTNER_EXTREF_IDX Not Unique. Columns:
- BPARTNER_EXTREF
- C_ORDER_C_RETURN_REASON Not Unique. Columns:
- C_RETURN_REASON_ID
- C_ORDER_CLIENT_ORG_DATE_DOCNO Not Unique. Columns:
- AD_CLIENT_ID
- AD_ORG_ID
- DATEORDERED
- DOCUMENTNO
- C_ORDER_DATEORDERED_ID Not Unique. Columns:
- DATEORDERED
- C_ORDER_ID
- C_ORDER_DOCUMENTNO_ID Not Unique. Columns:
- DOCUMENTNO
- C_ORDER_ID
- C_ORDER_DROPSHIP_USER Not Unique. Columns:
- DROPSHIP_USER_ID
- C_ORDER_ISSELECTED Not Unique. Columns:
- ISSELECTED
- C_ORDER_POSTED Not Unique. Columns:
- POSTED
- C_ORDER_QUOTATION_IDX Not Unique. Columns:
- QUOTATION_ID
- C_ORDER_REPLACEDORDER Not Unique. Columns:
- REPLACEDORDER_ID
- C_ORDER_REPLACEMENTORDER Not Unique. Columns:
- REPLACEMENTORDER_ID
- C_ORDER_SALESREP Not Unique. Columns:
- SALESREP_ID
- C_ORDER_UPDATED Not Unique. Columns:
- UPDATED
Check Constraints
These are the check constraints for this table:
- C_ORDER_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_ORDER_ISCANCELANDREPLA_CHECK: ISCANCELLED IN ('Y', 'N')
- C_ORDER_ISCASHVAT_CH: ISCASHVAT IN ('Y', 'N')
- C_ORDER_ISDELIVERED_CHECK: ISDELIVERED IN ('Y', 'N')
- C_ORDER_ISDISCOUNTPRINTED_CHK: ISDISCOUNTPRINTED IN ('Y', 'N')
- C_ORDER_ISINVOICED_CHECK: ISINVOICED IN ('Y', 'N')
- C_ORDER_ISPRINTED_CHECK: ISPRINTED IN ('Y', 'N')
- C_ORDER_ISSELECTED_CHECK: ISSELECTED IN ('Y', 'N')
- C_ORDER_ISSOTRX_CHECK: ISSOTRX IN ('Y', 'N')
- C_ORDER_ISTAXINCLUDED_CHECK: ISTAXINCLUDED IN ('Y', 'N')
- C_ORDER_PROCESSED_CHECK: PROCESSED IN ('Y', 'N')
![]() | Back to org.openbravo.model.common.order |