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

Announcements

No record found.

News and Announcements icon
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

(3) ShareShare
ReportReport
Posted on by 468
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,801 Super User 2026 Season 1 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
    468 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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans