Table of Contents

Table Crm_Line_Discounts

Entity

Entity: Crm.Pricing.LineDiscounts

Discount policies for sales documents. Entity: Crm_Line_Discounts

Summary

Name Type Description
Campaign_Id uniqueidentifier Тhe marketing campaign to which the current definition belongs.
Customer_Id uniqueidentifier Apply the discount only if this is the customer
Customer_Type_Id uniqueidentifier Apply the discount only if the customer is of this customer type
Description nvarchar(50) The description of the discount that is shown to the operator when he/she should choose between different discounts
Discount_Level nvarchar(1) Allowed: 1, 2, 3 Specifies the cascade level (1..3), on which the discount is applied. The discounts from level 1,2 and 3 are applied to three different discount fields in the sales order. The discount for each level is determined separately, by applying the same algorithm.
Discount_Percent decimal(7, 6) The discount percent that should be applied if all the matching criteria are met.
Distribution_Channel_Id uniqueidentifier Apply the discount only when the sales document is on the specified channel
Document_Amount_Type_Id uniqueidentifier The document amount type that is used as category for this discount. When specified, triggers the recording of the applied discount amount in the Document Distributed Amounts panel in sales orders.
Enterprise_Company_Id uniqueidentifier When not NULL, the policy is applied only for documents of the specified enterprise company
Enterprise_Company_Location_Id uniqueidentifier When set, the policy is applied only for documents of the specified enterprise company location.
From_Date datetime Starting date of validity of the discount. NULL means no from date restriction
Is_Active bit Indicates whether the current Line Discount is active.
Line_Discount_Id uniqueidentifier PK
Max_Quantity decimal(18, 3) Apply the discount only if the quantity sold is equal to or less than the specified here.
Min_Quantity decimal(18, 3) Apply the discount only if the quantity sold is equal to or more than the specified here.
Price_List_Id uniqueidentifier Apply the discount only if this price list is used
Priority tinyint Allowed: 1, 2, 3, 4, 5 The priority of this discount policy. When selecting a discount for a sales document line, only the highest priority policy, matching the criteria is applied.
Product_Group_Id uniqueidentifier Apply the discount only if the product sold is contained in this product group or any of its sub-groups
Product_Id uniqueidentifier Apply the discount only when this specific product is sold
Row_Version timestamp
Target_Group_Id uniqueidentifier Apply the discount only if the customer is included in this target group
Thru_Date datetime Ending date (inclusive) of validity of the discount. If NULL, the discount is valid forever

Columns

Campaign_Id

Тhe marketing campaign to which the current definition belongs.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 18
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Campaigns
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Campaign_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Customer_Id

Apply the discount only if this is the customer

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 5
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Customers
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Customer_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Customer_Type_Id

Apply the discount only if the customer is of this customer type

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 14
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Customer_Types
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Customer_Type_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Description

The description of the discount that is shown to the operator when he/she should choose between different discounts

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length 50
Order 1
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type nvarchar(50) (Allows NULL)
UI Memo Editor no
UI Width Long
User Login no
Visible yes

Description - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Like None no no

Discount_Level

Specifies the cascade level (1..3), on which the discount is applied. The discounts from level 1,2 and 3 are applied to three different discount fields in the sales order. The discount for each level is determined separately, by applying the same algorithm.

Property Value
Allowed Values 1, 2, 3
Auto Complete no
Data Filter no
Default Value 1
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length 1
Order 19
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable yes
Summary Type None
Supports EQUALS_IN yes
Type nvarchar(1)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Discount_Level - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL no no

Discount_Percent

The discount percent that should be applied if all the matching criteria are met.

Property Value
Attributes IsPercent
Auto Complete no
Data Filter no
Default Value 0
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 11
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(7, 6)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Discount_Percent - Supported Filters

Filter Type Default Include Nulls Hidden by Default
GreaterThanOrLessThan None yes no

Distribution_Channel_Id

Apply the discount only when the sales document is on the specified channel

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 15
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Distribution_Channels
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Distribution_Channel_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Document_Amount_Type_Id

The document amount type that is used as category for this discount. When specified, triggers the recording of the applied discount amount in the Document Distributed Amounts panel in sales orders.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 2147483647
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Document_Amount_Types
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Document_Amount_Type_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Enterprise_Company_Id

When not NULL, the policy is applied only for documents of the specified enterprise company

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 13
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Enterprise_Companies
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Enterprise_Company_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Enterprise_Company_Location_Id

When set, the policy is applied only for documents of the specified enterprise company location.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 16
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Cm_Company_Locations
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Enterprise_Company_Location_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

From_Date

Starting date of validity of the discount. NULL means no from date restriction

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 2
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type datetime (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

From_Date - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes yes
GreaterThanOrLessThan None yes no

Is_Active

Indicates whether the current Line Discount is active.

Property Value
Auto Complete no
Data Filter no
Default Value True
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 20
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type bit
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Is_Active - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL no no

Line_Discount_Id

Property Value
Auto Complete no
Data Filter no
Default Value NewGuid
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 0
Ownership Reference no
Pasword no
Picture no
Primary Key yes (order: 1)
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Line_Discount_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL no no

Max_Quantity

Apply the discount only if the quantity sold is equal to or less than the specified here.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 10
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(18, 3) (Allows NULL)
UI Memo Editor no
UI Width Short
User Login no
Visible yes

Max_Quantity - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes yes
GreaterThanOrLessThan None yes no

Min_Quantity

Apply the discount only if the quantity sold is equal to or more than the specified here.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 9
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(18, 3) (Allows NULL)
UI Memo Editor no
UI Width Short
User Login no
Visible yes

Min_Quantity - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes yes
GreaterThanOrLessThan None yes no

Price_List_Id

Apply the discount only if this price list is used

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 6
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Price_Lists
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Price_List_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Priority

The priority of this discount policy. When selecting a discount for a sales document line, only the highest priority policy, matching the criteria is applied.

Property Value
Allowed Values 1, 2, 3, 4, 5
Auto Complete no
Data Filter no
Default Value 3
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 12
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type tinyint
UI Memo Editor no
UI Width Short
User Login no
Visible yes

Product_Group_Id

Apply the discount only if the product sold is contained in this product group or any of its sub-groups

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 7
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Product_Groups
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Product_Group_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Product_Id

Apply the discount only when this specific product is sold

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 8
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Products
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Product_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Row_Version

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 17
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type timestamp
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Target_Group_Id

Apply the discount only if the customer is included in this target group

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 4
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Target_Groups
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Target_Group_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Thru_Date

Ending date (inclusive) of validity of the discount. If NULL, the discount is valid forever

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 3
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type datetime (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Thru_Date - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes yes
GreaterThanOrLessThan None yes no