ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.invoice/C InvoiceLine Offer
C_InvoiceLine_Offer
- Name:C_InvoiceLine_Offer
- Classname:InvoiceLineOffer
This table contains the following columns:
Name | Nullable | Data Type | Description
|
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. |
C_InvoiceLine_ID | No | VARCHAR (32) | The Invoice Line uniquely identifies a single line of an Invoice. |
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_Invoiceline_Offer_ID | No | VARCHAR (32) | Offers applied to the invoice line. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
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. |
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. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
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. |
M_Offer_ID | No | VARCHAR (32) | Promotion or Discount applied to a particular line (product) automatically by the system. |
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. |
TotalAmt | Yes | DECIMAL | The Total Amount indicates the total document amount. |
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. |
Columns
Line No.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- This column is part of the table's identifier
Invoice Line
- Physical column name: C_InvoiceLine_ID
- Property Name: invoiceLine
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to C_InvoiceLine table, (column: C_InvoiceLine_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
Invoice Line Offer
- Physical column name: C_Invoiceline_Offer_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Creation Date
- 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
- 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)
Price Adjustment
- Physical column name: M_Offer_ID
- Property Name: priceAdjustment
- Reference: TableDir
Foreign key column to M_Offer table, (column: M_Offer_ID)
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
Total Amount
- Physical column name: TotalAmt
- Property Name: totalAmount
- Reference: Price
Displayed Total Amount
- Physical column name: DisplayedTotalAmt
- Property Name: displayedTotalAmount
- Reference: Price
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_INVOICEOFFER_LINE_IDX Not Unique. Columns:
- C_INVOICELINE_ID