Skip to main content

Notifications

Announcements

No record found.

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

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

(1) ShareShare
ReportReport
Posted on by 100
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
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 25,463 Super User 2024 Season 2 on at
    Purchase Docs - How to stop discounts from being calculated if line amount excluded vat is updated
    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?
     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,402 Super User 2024 Season 2 on at
    Purchase Docs - How to stop discounts from being calculated if line amount excluded vat is updated
    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
    Bilal Haider Profile Picture
    Bilal Haider 93 on at
    Purchase Docs - How to stop discounts from being calculated if line amount excluded vat is updated
    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);
     

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Share Your Event with the Community

Jump start your event engagement! 📢

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,938 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,655 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans