Skip to main content

Notifications

Announcements

No record found.

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

How can I extend the number decimals of the Amount extended data types?

(1) ShareShare
ReportReport
Posted on by 253
Dear All,
 
I have a very basic problem with ERP that I would like to change the unit price in form sales table from 2 to 4 digits.
 
Recently I just open a ticket to ask Microsoft about this and the answer is scope of support do not cover this matter. However, they will try to treat it as an advisory request and provide the approach if possible and i got a link for any option that be possible. That be Extending decimal point precision for selected data types - Finance & Operations | Dynamics 365 | Microsoft Learn
 
My focusing is:
Then I try to follow up by test in Dev Environment on this subject but I can't continue. Can someone guide me how to do or what's next?
 
this is an image that I try to test in my environment.(SalesPrice that I wish to extend)
 
 
 
  • Verified answer
    Chomchanok Profile Picture
    Chomchanok 253 on at
    How can I extend the number decimals of the Amount extended data types?
    Dear All,
     
    Now I got an answer for this issue thanks all member to share your idea.
     
    Solution: 
    1. Tracking a Field that you want to change a decimal no.
    2. investigate a data type, in case a data type are extend from another you need to drill down until got a root data type.
    3. After you found a data type you need to extend a data type and finetune a property that you want.
    4. Sync Table in your project and run to check a results.
    ==============================
    Cautions
    1. For Data type that you finetune will impact all of data types in a system.
    2. For data type when you change, In case Microsoft have some update it's not impact for that because for Microsoft when they update most of it will impact a code for UI.
    BR.
  • Chomchanok Profile Picture
    Chomchanok 253 on at
    How can I extend the number decimals of the Amount extended data types?
    DearMohit Rampal,GirishS and all may can favor to me.
     
    I try to follow up your recommendations. by
    1. I do Data Type by Create a new one and extend from the last one.
    (MOTCurrency is Enum) = Can Edit Property
    (SalesPrice.HTSH is Extended from SalesPrice ) = Can't Edit Property
     
    2. I Create Table Extension from SalesLine and I focus the field that I wish to change a digits from 2 to 4
     
    3.I Test by change "Extended Data Type " to SalePrice(That Data Type that I extend). This is no error but nothing chanage because I can't change property value
     
    4.I Test by change "Extended Data Type " to MOTCurrency. It can change Property value but when i build I got an error "[AxTableExtension/SalesLine.HSTHExtension/Fields/SalesPrice/ExtendedDataType]:The extended data type 'MOTCurrency' is not derived from 'SalesPrice'."
     
    Can you guide me what's wrong and how to fixed it?
     
    Thank in advance.
  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    How can I extend the number decimals of the Amount extended data types?
    Hi, You can create new EDT, create SalesLine table extension, go to SalesPrice field, right click and in properties replace SalesPrice EDT with newly created one.
     
    However, I don't prefer this approach as you have to replace the new EDT in code as well where SalesPrice EDT is being used as return type of method. If you keep that standard EDT as return type then number of decimals will be incorrect (it will be as per standard EDT).  You can Find reference on SalesPrice field to check if its being used as return type of method.
     
  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    How can I extend the number decimals of the Amount extended data types?
    Create new EDT - Set the Number of decimals property as you required.
    Extend the Table - Change the EDT property of the SalesPrice field to the above created EDT.
     
    Thanks,
    Girish S.
     
  • Chomchanok Profile Picture
    Chomchanok 253 on at
    How can I extend the number decimals of the Amount extended data types?
    Dear @GirishS
     
    Thank you for your comment but Can you share a document how to do?
     
    BR
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    How can I extend the number decimals of the Amount extended data types?
    Hi,
     
    My suggestion will be better creating a new EDT and map the EDT to SalesPrice field instead of going for extension.
    If you extend the standard EDT it will affect in all the places where it is used, so it's better to create new EDT.
     
    Thanks,
    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans