• Updates
  • de-DE
Search Results for

    Show / Hide Table of Contents

    YAVEON 365 Line Discounts

    General

    If the pricing method of Yaveon 365 Trade is used instead of the standard Dynamics 365 Business Central Lowest Price calculation method (see Hierarchical Pricing), sales prices, line discounts, invoice discounts, rebates in kind, and surcharges/discounts are determined according to the following hierarchical order:

    1. Campaign
    2. Customer
    3. Customer Discount Group
    4. Customer Hierarchy
    5. All Customers
    6. Sales price on the item card (sales prices only)
    Note

    Depending on the setup of Hierarchical Pricing Customer in the Yaveon 365 Trade Setup, either the Sell-to Customer or the Bill-to Customer is used for determining the correct discounts and prices.

    Customer hierarchies let you define prices and discounts across multiple levels. The system searches upwards through the hierarchy levels until a valid entry is found. Prices and discounts are not inherited — as soon as the first valid entry is found, the search ends.

    Discounts - Level Calculation Type

    A Discounts - Level Calculation Type can be selected in the Yaveon 365 Trade Setup page. This setting determines how multiple discount lines are combined when applied to a sales document.

    Important

    This setting can only be changed while all discount-related tables are empty. This includes master data tables (Discount Templates, YAVEON 365 Invoice Discounts, YAVEON 365 Line Discounts) and transaction data tables (Invoice Discount Details, Line Discount Details). It is recommended to configure this setting when creating a new company.

    Two options are available:

    Separate Lines per Level Each discount line is treated as an independent level. The Calculation Basis field controls whether the discount is applied to the original value or to the amount already discounted by previous lines. The Sequence No. / Discount Level field determines the order in which the discounts are transferred to the document.

    Combine Lines in Levels Multiple discount lines can be grouped into levels using the Sequence No. / Discount Level field. All lines within the same level are combined, and the result of one level is used as the basis for the next. The Calculation Basis is fixed and cannot be selected per line.

    Fields in YAVEON 365 Sales Line Discounts

    The YAVEON 365 Sales Line Discounts page allows you to configure line discount rules. Each row defines when and how a discount applies.

    Sales Type Defines the group of customers for which this discount applies:

    Option Description
    Customer Applies to a specific customer.
    Customer Disc. Group Applies to all customers in a customer discount group.
    All Customers Applies to all customers without restriction.
    Campaign Applies within the date range of a campaign. Starting Date and Ending Date are set automatically from the campaign. By default, the price calculation searches for campaigns activated for the customer or contact. When Deact. Price Calc. without Campaign No. for Hier. Pricing is enabled in the Yaveon 365 Trade Setup, campaign discounts are only applied if a Campaign No. is explicitly set on the sales document header.
    Customer Hierarchy Applies to a customer hierarchy level.

    Sales Code Specifies the customer, customer discount group, campaign, or customer hierarchy for which the discount applies. Must be blank when Sales Type = All Customers.

    Type Specifies whether the discount applies to a specific item (Item) or to an item discount group (Item Disc. Group).

    Code Specifies the item number or item discount group code. Required.

    Starting Date / Ending Date Optional date range during which the discount is valid. For campaigns, these dates are set automatically from the campaign card and cannot be changed directly.

    Currency Code Optional. Restricts the discount to documents in the specified currency. Leave blank to apply to all currencies.

    Variant Code Optional. Restricts the discount to a specific item variant. Only applicable when Type = Item.

    Unit of Measure Code Optional. Restricts the discount to a specific unit of measure. Only applicable when Type = Item.

    Minimum Quantity Optional. The minimum quantity the customer must purchase to qualify for this discount.

    Template Code Optional. References a Discount Template that pre-fills the Sequence No. / Discount Level, Calculation Basis, Line Discount %, and Line Discount Amount per Unit fields.

    The Template Code also acts as a group identifier for insertion into the sales document. Only one discount entry per Template Code is inserted into the discount details of a sales document. An empty Template Code forms its own group — at most one of all applicable lines without a Template Code will be inserted, selected by the normal hierarchy search.

    Sequence No. / Discount Level In Separate Lines per Level mode, controls the order in which discounts are applied. This matters when Calculation Basis = Discounted Value.

    In Combine Lines in Levels mode, defines the discount level group. All lines in the same level are combined, and the combined result is the basis for the next level.

    Calculation Basis Visible only in Separate Lines per Level mode. Determines the base amount for this discount:

    Option Description
    Original Value Discount is calculated on the original (undiscounted) line amount.
    Discounted Value Discount is calculated on the remaining amount after previous discounts.

    Line Discount % The discount percentage to apply. Cannot be used together with Line Discount Amount per Unit.

    Line Discount Amount per Unit A fixed discount amount per unit of the item. Cannot be used together with Line Discount %. See Line Discount Amount per Unit for details.

    Priority Optional numeric priority. Used to control the selection order when multiple discount lines for the same Template Code group exist within the same hierarchy level.

    Create YAVEON 365 Sales Line Discounts

    With Yaveon 365 Trade you can define multi-level line discounts or discounts for customer hierarchies.

    Multi-level line discounts for customer hierarchies

    To create a line discount, open the YAVEON 365 Sales Line Discounts page (for example via the Customer Card) and enter a new row. Set at minimum the Sales Type, Sales Code (unless All Customers), Type, and Code. Then enter the discount value as either Line Discount % or Line Discount Amount per Unit.

    The key difference between the two variants is how Sequence No. / Discount Level and Calculation Basis are used:

    Separate Lines per Level Combine Lines in Levels
    Calculation Basis Selectable per line Fixed — not selectable
    Sequence No. / Discount Level Controls insertion order Defines the level group
    Fields pre-filled by Template Code Sequence No., Calculation Basis, Line Discount % / Amount Sequence No., Line Discount % / Amount

    Line Discount Amount per Unit

    In addition to a percentage-based discount, you can define a Line Discount Amount per Unit — a fixed amount deducted per unit of the item.

    Line Discount % and Line Discount Amount per Unit are mutually exclusive. If one field contains a value, the other must be zero (displayed as blank).

    Note

    The Line Discount Amount per Unit is only transferred to the discount details of the sales document if the Currency Code of the sales document matches the Currency Code in the discount line. If the currencies differ, the discount is not applied as an amount.

    The amount is also only applied if the unit of measure in the sales line matches the Unit of Measure Code in the discount master data. If no unit of measure is set in the master data, the item's Base Unit of Measure is used for the calculation.

    Important

    The Line Discount in the sales line is always stored internally as a percentage. When a Line Discount Amount per Unit is used, it is converted to an equivalent percentage based on the unit price. This means there may be minor rounding differences when posting partial invoices where quantities change between postings.

    Discount Templates with Discount Amount per Unit set are not available for selection in Invoice Discounts and will be filtered out from the template selection for invoice discount lines.

    How Discounts Are Applied to Sales Documents

    When the Quantity is entered or changed in a sales line, the system searches the YAVEON 365 Sales Line Discounts for all valid discount lines. The applicable discounts are inserted into the Discount Details of the document and can be viewed or edited there. The final combined result is transferred to the Line Discount % field in the sales line.

    Selection logic

    The system selects at most one discount line per Template Code group. The search follows the hierarchical order: Campaign → Customer → Customer Discount Group → Customer Hierarchy → All Customers.

    Within each hierarchy level, if multiple lines belong to the same Template Code group, they are sorted by Priority and then by entry order. The first valid line found for a given Template Code group (starting from the highest-priority hierarchy level) is inserted into the document. Lines from lower-priority levels are skipped for that group.

    Combination of different Sales Types

    When discount lines with different Sales Types are set up (for example, one for Customer and one for All Customers), each line can fill a different Template Code group. The hierarchy level of the Sales Type determines which line takes precedence when multiple lines target the same group.

    Combination of different Types (Item vs. Item Discount Group)

    Discounts can be set up both for a specific item (Type = Item) and for an item discount group (Type = Item Disc. Group). Both are evaluated independently. If they reference different Template Code groups, both can be inserted into the document. If they target the same group, the hierarchy level and priority determine which entry wins.

    Note

    The insertion logic is the same regardless of the selected Discounts - Level Calculation Type. Only the meaning of the fields inserted into the discount details differs between the two variants. The following examples are shown using the Separate Lines per Level variant.

    Get Lines Discount

    In addition to the automatic discount application described above, you can manually select a line discount using the Get Lines Discount function. This is available on the lines of the following sales documents:

    • Sales Order
    • Sales Quote
    • Sales Return Order
    • Blanket Sales Order

    To open the lookup, choose Line > Functions > Get Lines Discount in the document. The Get Sales Line Disc. page opens and shows all YAVEON 365 Sales Line Discount entries that are applicable for the current sales line, based on the customer, item, date range, and other criteria.

    Select a discount entry from the list and confirm. The selected discount is applied to the sales line.

    Currency restriction

    When the Get Lines Discount lookup is opened, only discount entries whose Currency Code matches the currency of the sales document are shown. Entries with a Currency Code that differs from the document currency are excluded from the list and cannot be selected. This prevents accidental selection of discounts that are not valid for the document currency.

    Note

    Line discount entries with an empty Currency Code are always shown in the lookup, regardless of the document currency, because a blank currency code means the discount applies to all currencies.

    Example 1: Combination of Sales Types

    How are discounts with different Sales Types combined? In what order are they applied?

    The following setup is available:

    line discounts setup example 1

    If 100 pieces are sold, the customer-specific agreement (line 4) is used for Template Code V01. Only one line exists for Template Code V02 (line 2).

    Both valid lines are inserted into the document following the hierarchical search sequence — the customer-specific record has higher priority. Within the same hierarchy level, records are sorted by the order in which they were entered.

    line discounts example 1

    Example 2: Combination of Template Codes

    How are discounts with different Template Codes combined? In what order are they applied?

    The following setup is available:

    line discounts setup example 2

    If 100 pieces are sold, the customer-specific agreements for Template Codes V01 and V02 (lines 2 and 3) are used. Both valid lines are inserted into the document following the hierarchical search sequence (identical in this case — both are customer-specific). Within the same hierarchy level, records are sorted by entry order: V02 is applied before V01.

    line discounts example 2

    Example 3: Combination of the Same Sequence No.

    What happens when multiple discounts with the same Sequence No. / Discount Level are defined?

    If 100 pieces are sold, the customer-specific discounts with Template Codes V01, V02, and V03 are used.

    line discounts setup example 3

    The valid lines are inserted following the hierarchical search sequence (identical for all three). Within the same hierarchy level and sequence, records are sorted by Template Code.

    line discounts example 3

    In This Article
    Zurück zum Anfang YAVEON GmbH