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

Notifications

Announcements

Community site session details

Community site session details

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

Change Sales order line unit Price to 3 decimals

(2) ShareShare
ReportReport
Posted on by 409
Hello,
I want to modify the Unit Price field on Sales order line to 3 decimals instead of the default 2 values using the EDT approach. (I am aware of the Currencies form approach)
The challenge is that, both the properties on form control called "NoOfDecimalsMode" and "NoOfDecimals" are greyed out.
The sales price EDT has NoOfDecimalsIsExtensible  property set to false. So, I created a custom EDT and set the NoOfDecimals = 3 and assigned it to salesprice field on salesline table. By doing this the table browser shows 3 decimals but the form still shows 2 decimals.
Any ideas
 
Thanks
Categories:
I have the same question (0)
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    26,618 Super User 2025 Season 2 on at
    Hi @SKO,
     
    You need to create a form extension SalesTable or SalesLine form (where the SalesPrice control exists):
    public void run()
    {
        next run();
    
        FormRealControl unitPriceControl = this.design().controlName("SalesPrice") as FormRealControl;
        if (unitPriceControl)
        {
            unitPriceControl.noOfDecimals(3);
        }
    }
    Best regards,
    Mohamed Amine MAHMOUDI
  • Verified answer
    Mariano G. Profile Picture
    3,598 on at
    In my company we have solved it by extending the UnitAmountCur EDT, in your extension you'll be able to modify the number of decimals, take notice that SalesPrice extends PriceCur, and PriceCur extends UnitAmountCur, doing this way you'll see 3 decimals, you should also extend UnitAmountMST EDT. You won't need to extend any form.
  • SKO Profile Picture
    409 on at
    Thanks Mohamed and Mariano. 
    Both approaches will work

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 791 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 333 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans