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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Wrong settings for manual discounts when updating sales lines

(0) ShareShare
ReportReport
Posted on by

One of our employees encountered the problem that when updating the sales lines (for example due to a change in shipping address) the resulting "sidebar" dialog contains disabled options that are set up wrong.

There are three questions on the dialog (I'm translating from German)

  • Copy settings from head to lines?
    • For all
    • Only for those who's shipping address matches the head
    • None
  • Update sales line settings?
    • keep current shipping dates and deactivate shipping date checks
    • recalculate shipping dates
  • Update manual discount or discounts from external documents?
    • keep all
    • update all
    • recalc(?) all

The first two questions are all fine but the third question is disabled (greyed out). This is the case for everyone; the users as well as myself. The problem is that for this employee and myself the question is locked to "update all" but for another employee it's set to "keep all", which is the desired choice.

Why is this? Can I override this somewhere?

I have the same question (0)
  • Suggested answer
    RM-28040959-0 Profile Picture
    4 on at
    Wrong settings for manual discounts when updating sales lines
    You need modification or You can once update with desired setting (it is available to change after You mark update at pop up window). Then will be saved. 
  • Suggested answer
    RM-28040959-0 Profile Picture
    4 on at
    Wrong settings for manual discounts when updating sales lines
    How to modify to hardcode this: 
     

    SalesTable2LineUpdatePrompt class then dialog method. 

    if (priceDiscChangePolicyExistOnLine)
    {
          FROM THIS CODE
         //Update prices and discounts entered manually or by external document (section)
         //Update prices and discounts (group of radio button default base on updatePriceDiscMode)
         updatePriceDiscDialogField = PriceDiscResultFields::promptPriceDiscPolicyUpdate(dialogGroup,   /////// orginal code
                                                                                                                                          dialog,
                                                                                                                                          updatePriceDiscMode,
                                                                                                                                          false);

          NEW CODE

         //Update prices and discounts (group of radio button default keep all)
        updatePriceDiscDialogField = PriceDiscResultFields::promptPriceDiscPolicyUpdate(dialogGroup,  /////// Change the updatePriceDiscMode enum to 1 which is equal to 'Keep all'
                                                                                                                                              dialog,
                                                                                                                                               1,
                                                                                                                                               false);


         updatePriceDiscDialogField.enabled(false);
    }

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 701 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 588 Most Valuable Professional

#3
Sumit Singh Profile Picture

Sumit Singh 544

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans