web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Sales prices & discounts based on categories

(4) ShareShare
ReportReport
Posted on by 165
Hi all
 
So we are tring to setup sales prices for our items, but we are finding it difficult to make it work the way we want.
 
We basically follow a hierarchical model based on different attributes or categories of the item. For example, we have the item Chicken (family = animal || subfamily = farm). The chicken is sold at 5€, and we want to create a discount of 10% for all items with family = farm. This seems to be easy to accomplish creating items discount groups. The problem is that we would need many discount groups, because at the same time we have this 10% discount for family = animal, we also want to give a 12,5% discount for subfamily = farm. Our hierarchy is:
  1.  Special price for the product
  2.  Discount for the product
  3.  Discount for the family
  4.  Discount for the subfamily
So as this product has no special price, neither a discount for the specific item, the discount for family = animal should apply, meaning the final price would be 0,95 * 5€. If we then set a special price for the product for the current month at 3,5€, the final price should be 3,5€ as it is higher up in our hierarchy. So no discount this time.
 
I understand it's quite a weird requirement but giving discount to products based on different categories seems pretty basic to me. If anyone has any advice or can provide a little guidance on this matter that would be much appreciated.
 
Thanks so much in advance!!
Kind regards,
I have the same question (0)
  • Suggested answer
    Mansi Soni Profile Picture
    8,887 Super User 2025 Season 2 on at
    Sales prices & discounts based on categories
    Hello,

    In Business Central, handling item pricing and discounts based on a hierarchical structure like yours (special price > item discount > family discount > subfamily discount) requires a combination of standard functionality and strategic setup. While Business Central supports Sales Prices and Sales Line Discounts (including by customer, item, or item discount group), it doesn't natively support complex hierarchical pricing based on custom attributes like family or subfamily out-of-the-box.

    To achieve your desired behavior - where the system applies the most specific applicable discount or price - you would typically need to create custom fields (e.g., Family, Subfamily) on the Item Card and then implement custom logic via AL extensions or use discount group mapping creatively. One common approach is to assign items to Item Discount Groups corresponding to categories (e.g., FAMILY_ANIMAL, SUBFAMILY_FARM) and then define discounts per group.

    However, since Business Central applies only one discount based on the matching rule and doesn't evaluate discount precedence automatically, you would need to customize the logic to check the hierarchy and apply the most specific price or discount (e.g., prioritize special prices over category discounts). This can be done through code customization where the pricing engine evaluates the item’s category metadata and chooses the correct pricing tier. 

    Hope this answer will help you!

    Regards,
    Mansi Soni
  • Verified answer
    Sohail Ahmed Profile Picture
    11,099 Super User 2025 Season 2 on at
    Sales prices & discounts based on categories

    Hi,

    This type of hierarchical pricing logic isn’t fully supported in standard Business Central. 

    What you can do with standard features:

    1. Sales Prices – You can set special prices per item, per customer, or for customer price groups. If a special price exists, it will override any discounts.


    2. Sales Line Discounts – You can use Item Discount Groups to apply a percentage discount for a group of items assigned to a customer or customer group.


    3. Best Match Logic – Business Central will automatically pick the best applicable price or discount, but it does not combine or prioritize them hierarchically. It won't apply “Family discount unless a Subfamily discount exists,” for example.

    Limitations:

    • Discounts are not layered.

    • There is no built-in logic to check category levels (family, subfamily) in a defined order.

    • You would need to manually maintain a large number of discount groups to represent each category combination, which is not scalable.

    Recommended approach:

    If you require a strict pricing hierarchy like:

    • Special item price

    • Then item-specific discount

    • Then family discount

    • Then subfamily discount



    •  

    ...this would require a customization.

  • Suggested answer
    YUN ZHU Profile Picture
    93,654 Super User 2025 Season 2 on at
    Sales prices & discounts based on categories
    As far as I know this is not possible in the standard, you can contact your partner to discuss custom requirements.
    But please note that there is a new module for Sales Price. If you want to customize it, it is recommended to make changes on the new module.
    Thanks
    ZHU
  • xmp Profile Picture
    165 on at
    Sales prices & discounts based on categories
    Hi
     
    OK, got it. We will develop an extension to accomplish this.
     
    Thank you all for your responses.
    Kind regards,
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,886 Super User 2025 Season 2 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,106

#2
YUN ZHU Profile Picture

YUN ZHU 1,752 Super User 2025 Season 2

#3
OussamaSabbouh Profile Picture

OussamaSabbouh 1,670

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans