ERP/2.50/Developers Guide/Database Model/org.openbravo.model.pricing.priceadjustment/M Offer
M_Offer
The Price Adjustments have a valid period and are applied to the configured business partners, products, product categories and business partner groups. The offer can be based upon percentage or fixed price.
- Name:PricingAdjustment
- Classname:PriceAdjustment
This table contains the following columns:
Name | Nullable | Data Type | Description |
M_Offer_ID | N | VARCHAR2(32) | The ability to raise or lower prices. |
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 |
Name | N | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
Priority | Y | NUMBER | A defined level of importance or precedence. |
Addamt | N | NUMBER | Fixed discount amount |
Discount | N | NUMBER | The proportional discount given to an item, without respect to any previously defined discounts. |
Fixed | Y | NUMBER | A price that does not change when price adjustments are made. |
DateFrom | N | DATE | A parameter stating the starting time range related to a specified request. |
DateTo | Y | DATE | A parameter stating the ending time range related for a specified request, query, etc. |
BPartner_Selection | N | VARCHAR2(60) | Business Partner Selection Mode |
BP_Group_Selection | N | VARCHAR2(60) | BP Group Selection Mode |
Product_Selection | N | VARCHAR2(60) | Product Selection Mode |
Prod_Cat_Selection | N | VARCHAR2(60) | Product Category Selection Mode |
Description | Y | VARCHAR2(255) | A space to write additional related information. |
Pricelist_Selection | Y | VARCHAR2(60) | Pricelist Selection Mode |
Qty_From | Y | NUMBER | Quantity From |
Qty_To | Y | NUMBER | Quantity to |
Other Info
Check constraints
These are the check constraints for this table:
- M_OFFER_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- M_OFFER_KEY
Columns
Price Adjustment
Price Adjustment applied to a particular line (product) automatically by the system.
- Physical column name: M_Offer_ID
- Property Name: id
- Reference: ID
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
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: @#Date@
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
- Default value: @#Date@
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
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
- This column is part of the table's identifier
Priority
The Priority indicates the importance of this request.
- Physical column name: Priority
- Property Name: priority
- Reference: Integer
Discount Amount
Fixed discount amount
- Physical column name: Addamt
- Property Name: discountAmount
- Reference: Amount
- Default value: 0
Discount %
The Discount indicates the discount applied or taken as a percentage.
- Physical column name: Discount
- Property Name: discount
- Reference: Number
- Default value: 0
Fixed Price
Fixed price for the price adjustment
- Physical column name: Fixed
- Property Name: fixedPrice
- Reference: Number
Starting Date
The Date From indicates the starting date of a range.
- Physical column name: DateFrom
- Property Name: startingDate
- Reference: Date
Ending Date
The Date To indicates the end date of a range (inclusive)
- Physical column name: DateTo
- Property Name: endingDate
- Reference: Date
Included Business Partners
Business Partner Selection Mode is the way Business Partners will be selected.
- Physical column name: BPartner_Selection
- Property Name: includedBusinessPartners
- Reference: List
- Default value: Y
List values: Offers
The allowed values for this list are:
- N (Only those defined)
- Y (All excluding defined)
Included BP Categories
Defines the way Business Partner Groups will be selected (including or excluding the taken ones)
- Physical column name: BP_Group_Selection
- Property Name: includedBPCategories
- Reference: List
- Default value: Y
List values: Offers
The allowed values for this list are:
- N (Only those defined)
- Y (All excluding defined)
Included Products
Defines the way Products will be selected (including or excluding the taken ones)
- Physical column name: Product_Selection
- Property Name: includedProducts
- Reference: List
- Default value: Y
List values: Offers
The allowed values for this list are:
- N (Only those defined)
- Y (All excluding defined)
Included Product Categories
Defines the way Product Categories will be selected (including or excluding the taken ones)
- Physical column name: Prod_Cat_Selection
- Property Name: includedProductCategories
- Reference: List
- Default value: Y
List values: Offers
The allowed values for this list are:
- N (Only those defined)
- Y (All excluding defined)
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Include Price Lists
Defines the way Price Lists will be selected (including or excluding the taken ones)
- Physical column name: Pricelist_Selection
- Property Name: includePriceLists
- Reference: List
- Default value: Y
List values: Offers
The allowed values for this list are:
- N (Only those defined)
- Y (All excluding defined)
Min. Quantity
Quantity From is the minimum amount that the offer will be applied from.
- Physical column name: Qty_From
- Property Name: minQuantity
- Reference: Quantity
Max. Quantity
Quantity to is the maximum amount to apply the offer.
- Physical column name: Qty_To
- Property Name: maxQuantity
- Reference: Quantity
Related tables
Tables that link this table:
- InvoiceLine.Price Adjustment
- InvoiceLineOffer.Price Adjustment
- OrderLine.Price Adjustment
- OrderLineOffer.Price Adjustment
- PricingAdjustmentBusinessPartner.Price Adjustment
- PricingAdjustmentBusinessPartnerGroup.Price Adjustment
- PricingAdjustmentPriceList.Price Adjustment
- PricingAdjustmentProduct.Price Adjustment
- PricingAdjustmentProductCategory.Price Adjustment