Skip to main content
Community site session details

Community site session details

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

Discount

(6) ShareShare
ReportReport
Posted on by 41
How do I limit discount percentage in business central. How do I set a maximum discount whereby a user cannot exceed the value set.
  • Suggested answer
    Andrés Arias Profile Picture
    1,380 on at
    Discount
    Hello,
     
    I agree with my colleagues. There is no standard functionality that allows this, you can rely on flow or development.

    I hope I can help.
     
    Regards,
     
    Andres
  • Suggested answer
    Sohail Ahmed Profile Picture
    4,829 on at
    Discount
    Agreed with @Mansi Soni Suggestions & @Kamal Khakhkhar AL Code
  • Suggested answer
    Mansi Soni Profile Picture
    5,684 on at
    Discount
    Hello,

    There is no built in functionality available for limit discount percentage in business central. As suggested by other professionals you can manage it either with an approval workflow or you can go for AL Customization.

    Hope this answer will help you!

    Regards,
    Mansi Soni
  • Suggested answer
    Jainam M. Kothari Profile Picture
    10,094 on at
    Discount
    Hello,
     
    I agree with the Experts that you can add the Workflow for the same OR else you can Custom the AL Code for Allow Max. Percentage of Discount.
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    858 on at
    Discount
    Hii there,
    some times in some company not using approvals so in that case you can add a validation on field of Line if Line Discount % > LimitPercentage  then error 
    sample code is attached Below you can Update as per your requirement.
     
        [EventSubscriber(ObjectType::Table, Database::"Purchase Line", OnBeforeValidateEvent, "Line Discount %", false, false)]
        local procedure MyProcedure(var Rec: Record "Purchase Line")
        begin
            if not rec.IsTemporary then
                if rec."Line Discount %" > 20 then Error('You can not give discount More then 20 %');
        end;
     
     
    if you found answer mark it answered.
     
    Thank You,
    Kamal Khakhkhar
  • Suggested answer
    Ahmad Subhani Profile Picture
    275 on at
    Discount
    Go to the Workflows and in the Condition add the Percentage in Line Discount Field:
  • SP-29040942-0 Profile Picture
    141 on at
    Discount
    You can set up an approval workflow in Business Central and add a condition based on the Line Discount % or Invoice Discount % field.
     
    🛠️ Example Use Case:
    • If a user enters a Line Discount > 20%, the document automatically goes for approval.
    • Only a manager or authorized user can approve and post it.
    🧩 Steps (Summary):
    1. Go to Workflows.
    2. Create or edit a Sales Document Approval Workflow.
    3. Add a condition in the workflow trigger like: "Line Discount %" is greater than 20
    4. Assign the approval user group.
    This ensures that users can enter the discount, but they can’t post or send the document without approval if it exceeds the allowed percentage.
     
    Let me know if you want help writing that condition or setting it up!

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans