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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Unit conversion rounding issue on sales order

(0) ShareShare
ReportReport
Posted on by

We have run into an issue when processing sales orders where the inventory unit and sell unit are different.  

Unit A is the inventory unit.  Unit B is the sell unit.

In our scenario Unit A * 1.07 = Unit B.

The product is batch controlled and is invoiced for the following batches an quantities (note the conversion by line from Unit A to Unit B):

Batch number Unit A Unit B
A1 957.00 1,023.99
A2 957.00 1,023.99
A3 980.00 1,048.60
A4 980.00 1,048.60
A5 980.00 1,048.60
A6 957.00 1,023.99
A7 957.00 1,023.99
A8 980.00 1,048.60
A9 957.00 1,023.99
A10 957.00 1,023.99
A11 980.00 1,048.60
A12 957.00 1,023.99
A13 957.00 1,023.99
A14 957.00 1,023.99

The decimal precision on Unit B (the sell unit) is set to 0 decimal places.  The quantity being invoiced looks to be calculated by the sum of all batch numbers * 1.07 and arrives at:

13,513*1.07 = 14,458.91 

Rounded to 14,459.00 on the invoice line.

However, when we go to print the invoice and include the batch number, the each individual batch number is rounded in the output:

Batch number Invoice Output
A1 1024
A2 1024
A3 1049
A4 1049
A5 1049
A6 1024
A7 1024
A8 1049
A9 1024
A10 1024
A11 1049
A12 1024
A13 1024
A14 1024

So the total for all batches 14,461 for the batch detail does not match the invoice total 14,459.

Is there a setting somewhere in AX to control the rounding?  In our business Unit B, has to be shown with 0 decimal places.

*This post is locked for comments

I have the same question (0)
  • FAC.Ansel Profile Picture
    1,630 on at
    RE: Unit conversion rounding issue on sales order

    I know this is an old thread, but I'm experiencing this issue and wondered if you ever got a response or found a fix?

  • André Arnaud de Calavon Profile Picture
    299,349 Super User 2025 Season 2 on at
    RE: Unit conversion rounding issue on sales order

    If you have set to use zero decimal places, each individual inventory transaction will be rounded. Per different batch number, an inventory transaction will be created even if it is for the same sales order line. This explains the "rounding" difference.

  • FAC.Ansel Profile Picture
    1,630 on at
    RE: Unit conversion rounding issue on sales order

    I get there is a difference and I get how it gets calculated and why they are different.  I was hopeful that there was a way to force the Packing Slip and Invoice to use the Total Quantity of the transactions without having to make a customization, but it sounds like this is just how AX works.  Thanks.

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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans