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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Problem with moving average valuation

(3) ShareShare
ReportReport
Posted on by 8
Dear community,
 
I have recently tested the moving average valuation method in D365FO and first tried to example from the Microsoft learning page:
 
Test 1
  1. Create a purchase order for a quantity of 2 and a unit price of 10.00 USD.
  2. Create a purchase receipt of the product.
  3. Create a sales order for a quantity of 1 and a unit price of 10.00 USD.
  4. Create a purchase invoice for a quantity of 2 and a unit price of 12.00 USD.
As expected, the price difference between the physical receipt and financial update is split, and an inventory adjustment for -2.00 USD is made (posted as moving average price differences). The "average" is now 12.00 USD/unit.
 
 
So far, so good. But then I tried similar examples with multiple receipt transactions, and that's where it gets confusing...
 
Test 2
  1. Create a PO for quantity of 2 and unit price of 10.00 USD and post invoice.
  2. Create a PO for quantity of 2 and unit price of 10.00 USD and post product receipt.
  3. Create sales order for quantity of 1 and post invoice. As expected, the issue is posted with a average cost of 10.00 USD.
  4. Post invoice the 2nd PO for quantity of 2 and a unit price of 12.00 USD.
Although this example is very similar to the first one, the result was somewhat surprising. As before, an inventory adjustment of -2.00 USD was made, leaving me with a moving average of 10.67 USD/unit. I expected the system to adjust in a way that would leave me with he correct average based on my receipts. In this case, an adjustment of only -1.00 USD should have been made, resulting in an average of 11.00 USD/unit.
 
 
Test 3
 
For my final test, I changed it up a bit again:
  1. Create a PO for quantity of 2 and unit price of 10.00 USD and post invoice.
  2. Create a PO for quantity of 2 and unit price of 12.00 USD and post product receipt.
  3. Create sales order for quantity of 1 and post invoice. As expected, the issue is posted with a average cost of 11.00 USD.
  4. Create purchase invoice for quantity of 2 and a unit price of 10.00 USD.
Strangely, in this case, no adjustment was made at all(!), and I now have a moving average of 9.67 USD/unit. This really shocked me, because I expect that my valuation per unit must always be between the minimum and maximum receipt price and never outside these boundaries! (I would have expected an adjustment of +1.00 USD to correct the average to 10.00 USD/unit.)
 
Based on my testing, I conclude that the price difference between physical and financial receipt is not correctly allocated between on-hand inventory and issues (posting to price difference), leaving me with incorrect average costs for my inventory valuation.
 
Can anyone explain these results? Is it a bug or a feature? (I used version 10.0.42 for this test.)
 
Categories:
I have the same question (0)
  • Zain Mehmood Profile Picture
    4,187 Most Valuable Professional on at

    Hi,

    Hope you are doing good, 

    Thanks for the detailed breakdown — very insightful tests!

    One thing that comes to mind is the role of transaction dates in moving average calculations. Since moving average in D365 doesn’t retroactively adjust already-issued inventory, the sequence and posting dates of receipts, invoices, and issues can significantly impact the results.

    Can you confirm:

    • Were all transactions (PO receipts, invoices, and SO issues) posted on the same date, or did you test them across different dates
    • Specifically, was the purchase invoice posted before or after the sales invoice?
    Thanks,
    Zain 
  • OM-04030959-0 Profile Picture
    8 on at
    Hi Zain,
     
    I confirm that all transactions are posted on the same date, and as in the sequence as shown above. So in all cases, the purchase invoice (receipt) is posted after posting of the sales invoice (issue).
     
    I understand that the issue is therefore not adjusted anymore, which is expected in this inventory model, however my concern is how the price difference affects the remaining inventory value - which seems incorrect in my opinion.
     
    Kind regards
    Oliver

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…

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
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans