Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Sales table 2 line update

Posted on by 10

During the process of updating certain fields on a sales order header my company has configured the 'Update order lines' prompt to pop up, asking how/if to propagate the header's values down to the lines. For the changes that impact price there's the Update prices and discounts radio button section of the dialog with 3 radio button options: Update all, Keep all, Evaluate each line. Does anyone know how to change the default radio button selected here to be 'Keep all'? Our users aren't reading this confusing text all of the time correctly and leaving the option at 'Update all' which is resulting in sales line prices getting updated inadvertently. Here's the screenshot with the red box around the radio button that needs to be the default.pastedimage1655499578351v1.png

  • msocha Profile Picture
    msocha 10 on at
    RE: Sales table 2 line update

    This is what I needed. Thanks! I ended up putting this configuration section into the Accounts Receivable parameters dialog here, so you can choose whether you want to have the default selection overridden (as opposed to being whatever the last selection option was for that user). Also you can choose what the default override value should be (if override is enabled), and you can choose whether or not that 'Update prices and discounts' legend box can be enabled (allow user change of default selection).

    pastedimage1656617506913v1.png

  • Verified answer
    Jeson Profile Picture
    Jeson 120 on at
    RE: Sales table 2 line update

    What we did is we change something from SalesTable2LineUpdatePrompt class then dialog method. Just find the code below in dialog method of the class

    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);
    }

    pastedimage1655640534197v1.png

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans