ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Codeunit][60][Sales-Calc. Discount] We need a way to prevent the dialog Calculating Invoice Discounts from popping up

Open aablasco opened this issue 1 year ago • 3 comments

Why do you need this change?

Business Central 2025 Release Wave 2 (BC27) added a ProgressDialog that shows the system is Calculating Invoice Discount, Processing Service Charges and so on. There was no such dialog in previous versions of Business Central.

This Codeunit is called from Document Totals when the lines sales subpage is updated and also from Release Sales Document, when the company has the Calc. Inv. and Pmt. Discount in Sales & Receivables Setup is on.

This dialog can pop up on top of a confirmation or any message, which causes the page to get stuck.

Image

The only way to solve is refreshing the page, but the user does not know if his or her last changes will be saved.

This dialog also pops up from time to time disturbing the creation of long sales document.

We have paused our client upgrades to BC27 because our extensions have actions to create or copy sales lines and users often got blocked while performing they daily tasks.

We have seen other users having the same issue on online forums, for example: Calculating Invoice Discount...: BC gets stuck on this message and never closes on Dynamics 365 Community

Describe the request

We need a way to disable that dialog, either an event to disable the dialog opening, updating and closing or a switch on the Sales & Receivables Setup

We have created a small PTE app to test it: after turning Calc. Inv. and Pmt. Discount on, creating a sales order header, filling the customer and executing the action Add items test: selecting some items. This procedure adds the selected items as lines with quantity 1, the sales order page refreshes and the dialog often hides the last message.

bc27SalesDiscTest.zip

aablasco avatar Nov 27 '25 15:11 aablasco

We also have this problem.we logged an issue to support and a pull request too.

It's annioying for users and blocking xopys documents. Only workaround os to disable the option in sales and purchase setup

AndreaDiCeglie avatar Nov 27 '25 20:11 AndreaDiCeglie

we have the same problem. we are not live yet, but the customer is already complaining about it.

JohnnyUndercover avatar Nov 28 '25 08:11 JohnnyUndercover

This very much sounds like a support case. I've notified the team about this issue and have created a bug for them too. We should be on this soon! In the future, such cases should go through support though to ensure a swift resolution in all supported versions of the product.

Closing this issue with internal bug reference AB#614968.

JesperSchulz avatar Dec 01 '25 09:12 JesperSchulz