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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Purchase Docs - How to stop discounts from being calculated if line amount excluded vat is updated

(2) ShareShare
ReportReport
Posted on by 305
Hello all, 
 
When adding an item to a purchase document, the Direct Unit Cost (DUC) will be automatically populated with the Item's Last Unit Cost, and once a qty is added, the Line Amount Excl. VAT will be calculated. See example below: 
 
 
Now, if a user instead of updating the DUC, updates the Line Amount Excl. VAT, a discount will be automatically calculated, see screenshot below. How can I stop this? The Item has already been marked as not "allow discount invoice" and the Calc. Inv. Discount setting is off in the Purchases & Payables Setup.
 
Thanks
 
Alejandra
I have the same question (0)
  • Verified answer
    Bilal Haider Profile Picture
    412 on at
    Hi,
     
    To achieve this you need to subscribe to the event and set ishandled to true. Then it will not calculate discount amount and %.
     
    OnValidateLineAmountBeforeValidateLineDiscountAmount(Rec, Currency, IsHandled);
     
  • Verified answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
    Unfortunately, as far as I know, only customization can do this.
    PS: Missing a feature? Post or vote for ideas on: aka.ms/BCIdeas
     
    Thanks.
    ZHU
  • Suggested answer
    Valentin Castravet Profile Picture
    31,340 Super User 2025 Season 2 on at
    Can you clarify why you would want to do that? If the line amount is lower than the unit cost (adjusted to the quantity on the line), the system assumes you have a discount, which makes sense mathematically. Why and how do you want the line amount to be lower than the unit cost without applying a discount?
     
  • AleAlonso Profile Picture
    305 on at
    Hi Valentin
     
    Business will never have discounts, users should be updating the DUC, not the Line Amount Excl VAT. This is why I wanted to see if there is a way to stop discounts from being calculated :)
     
    Thanks
     
    Alejandra
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,275 Super User 2025 Season 2 on at
    I think it will require customization.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans