2

In codeunit 5343 "CRM Sales Order to Sales Order", the method ApplySalesOrderDiscounts currently displays a confirm message whenever the CRM Sales Order Header contains a Discount Amount or Discount %.

The message is as follows:

"There is a discount on the %2 sales order, which will be overwritten by %1 settings. You will have the possibility to update the discounts directly on the sales order, after it is created. Do you want to continue?"

This message appears regardless of whether discounts are actually configured in Business Central. Additionally, if the user selects "No", the Sales Order creation process fails with an unclear error message (Error('')), making the process confusing and frustrating for users.

Suggested Improvement:

Before displaying the confirm message, the logic should:

  1. Check the G/L Setup and
  2. Evaluate per-customer invoice discount settings.

If neither of these are configured in Business Central, the confirmation message should not be shown at all, as there is no conflicting logic that would override the CRM discount values.

This would improve the user experience by:

  • Avoiding unnecessary and misleading prompts.
  • Ensuring discounts from the CRM Sales Order are transferred correctly to the Business Central Sales Order without unnecessary intervention.
  • Providing a smoother integration flow between CRM and Business Central.

Expected Behavior:

  • If no conflicting discount settings are configured in Business Central, allow the CRM discount values to transfer without showing the confirmation dialog.
  • If a conflict exists, continue to show the confirmation with a clearer explanation and ensure the error handling is more informative if the user declines.


Screenshot can be found here: https://www.yammer.com/dynamicsnavdev/#/Threads/show?threadId=3282868823990272

Category: General
STATUS DETAILS
New