ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.order/C OrderLine Offer
C_OrderLine_Offer
- Name:C_OrderLine_Offer
- Classname:OrderLineOffer
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. |
Priceoffer | No | DECIMAL | Net unit price before applying this promotion. In case multiple promotions are applied in cascade, this price is the one after applying all promotions with more priority than current one.
This field is populated in case the used price list does not include taxes. |
Priceoffergross | No | DECIMAL | Gross unit price before applying this promotion. In case multiple promotions are applied in cascade, this price is the one after applying all promotions with more priority than current one.
This field is populated in case the used price list includes taxes. |
C_Orderline_Offer_ID | No | VARCHAR (32) | The ID identifies a unique offer for an order line |
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. |
DisplayedTotalAmt | Yes | DECIMAL | This field represents the total amount this promotion discounts from the line. It is the value that is displayed to user rather than the actual one used internally which might be different depending on the Promotion Type. |
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. |
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. |
M_Offer_ID | No | VARCHAR (32) | Promotion or Discount applied to a particular line (product) automatically by the system. |
Amtoffer | No | DECIMAL | Defines the amount per that is discounted per unit by this promotion. If the used price list includes taxes this discount applies to gross unit, whereas if it doesn't include taxes, it applies to net unit price. |
C_OrderLine_ID | No | VARCHAR (32) | A unique identifier and a reference to a sales order line (product). |
TotalAmt | Yes | DECIMAL | The Total Amount indicates the total document amount. |
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
Adjusted price
- Physical column name: Priceoffer
- Property Name: adjustedPrice
- Reference: Price
- Default value: 0
Base Gross Unit Price
- Physical column name: Priceoffergross
- Property Name: baseGrossUnitPrice
- Reference: Price
- Default value: 0
C_Orderline_Offer_ID
- Physical column name: C_Orderline_Offer_ID
- Property Name: id
- Reference: ID
- This column is part of the table's identifier
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
Displayed Total Amount
- Physical column name: DisplayedTotalAmt
- Property Name: displayedTotalAmount
- Reference: Price
Line No.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- This column is part of the table's identifier
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Price Adjustment
- Physical column name: M_Offer_ID
- Property Name: priceAdjustment
- Reference: TableDir
Foreign key column to M_Offer table, (column: M_Offer_ID)
Price Adjustment Amt.
- Physical column name: Amtoffer
- Property Name: priceAdjustmentAmt
- Reference: Price
- Default value: 0
- This column is part of the table's identifier
Sales Order Line
- Physical column name: C_OrderLine_ID
- Property Name: salesOrderLine
- Reference: Search
- This column is a child for a business object (is Parent)
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
Total Amount
- Physical column name: TotalAmt
- Property Name: totalAmount
- Reference: Price
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):
- C_ORDERLINEOFFER_LINE_IDX Not Unique. Columns:
- C_ORDERLINE_ID
![]() | Back to org.openbravo.model.common.order |