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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
FastTrack for Dynamics 365 forum
Active Discussion

D365 F&O: Handling 4-Decimal Precision for QtyUnit and UnitPrice in SaaS Environment

(1) ShareShare
ReportReport
Posted on by 2
We are currently implementing D365 F&O for XXX Company, this company requiring high-precision decimal handling for unit pricing and quantities.
We have identified a technical challenge regarding decimal precision that requires your technical expertise.
 
**Current Situation:**
- Database schema supports number(32,6) for QtyUnit and UnitPrice fields
- Standard EDT (Extended Data Type) in SaaS limits precision to 2 decimal places
- User input of 4 decimal places (e.g., 1.2345) is being rounded to 2 decimals before database storage
- EDT customization is not available in D365 F&O SaaS environment
 
**Problem Statement:**
We need to preserve 4 decimal places for accurate pricing and quantity management, but the current form controls and EDTs enforce rounding to 2 decimal places during the input-to-storage workflow.
 
**Proposed Solution:**
We are evaluating a two-part approach:
 
1. **Form Control Enhancement via X++ Event Handlers**
   - Intercept user input at the Modified event level
   - Bypass standard EDT rounding and store values directly with 4 decimal precision
   - Maintain database compatibility with number(32,6) schema
 
2. **Extended Table Fields**
   - Add new precision-enhanced fields: QtyUnitPrecise, UnitPricePrecise
   - Reserve standard fields for backward compatibility with existing integrations
   - Enable audit trail and traceability
 
**Key Questions:**
1. Is X++ event handler customization fully supported in D365 F&O SaaS for form controls?
2. Are there any known limitations or best practices for bypassing EDT precision constraints?
3. Can table extensions with new fields be deployed in a production SaaS environment?
4. What are the recommended approaches for maintaining data integrity during OData/EDI synchronization with non-standard precision fields?
 
 
  • Suggested answer
    sannavajjala87 Profile Picture
    43 on at
    This scenario comes up quite often in Finance & Operations implementations where the business requires more precision than the standard application exposes.
     
    A few thoughts based on Microsoft best practices:
     
    1. X++ event handlers are fully supported in Dynamics 365 Finance & Operations SaaS, including form control events such as "Modified()", provided the customization is implemented through extensions (not overlayering). However, if the underlying EDT or business logic enforces rounding, changing the value at the form level alone may not be be sufficient because other validation and calculation logic can still round the value later in the transaction lifecycle.
     
    2. Bypassing EDT precision is generally not recommended. The EDT precision is often aligned with application logic, calculations, posting routines, and reporting. Attempting to override it at the UI layer can introduce inconsistencies between what users enter and what downstream business logic expects.
     
    3. Table extensions with additional fields are fully supported in SaaS and are the preferred extensibility model. Adding fields such as "QtyUnitPrecise" and "UnitPricePrecise" is a supported approach if your business process genuinely requires higher precision. The key consideration is identifying every process (pricing, inventory, costing, tax, posting, reporting, integrations, etc.) that should consume the extended fields instead of the standard ones.
     
    4. For OData, Dual-write, or EDI integrations, define a clear ownership strategy for the precision fields. If external systems require 4-decimal precision, expose the extended fields through Data Entities where appropriate and implement consistent mapping logic so there is no ambiguity between the standard fields and the precision-enhanced fields. Validation should ensure both values remain synchronized according to your business rules.
     
    One additional question to consider: Is the 2-decimal limitation coming from the EDT, or from the Unit of Measure setup, currency precision, or application parameters? In many cases, the precision is controlled by functional configuration rather than only the database schema or EDT.
     
    Understanding whether this is for Sales, Procurement, Inventory, Production, or Project Operations will also help determine the most appropriate solution, as different modules handle decimal precision differently.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > FastTrack for Dynamics 365

#1
André Arnaud de Calavon Profile Picture

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

#2
11manish Profile Picture

11manish 4

#3
RD-11061520-0 Profile Picture

RD-11061520-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans