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

Announcements

News and Announcements icon
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 313
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
    485 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
    101,995 Super User 2026 Season 1 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
    32,800 Super User 2026 Season 1 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
    313 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
    22,792 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,222 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,603 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,186 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans