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 :
Microsoft Dynamics AX (Archived)

Adjusting the average cost for an item

(0) ShareShare
ReportReport
Posted on by 350

One item (we will call it item A), was partially received and invoiced in a single line PO. Unfortunately, item A was invoiced with an incorrect purchase cost price for some quantities. To reverse this, credit notes were created against those incorrect invoices and were re-invoiced with the proper value ( the purchase price for item A is fixed for the PO). The vendor account is okay  and our inventory G\L account is okay.

After invoicing the first sales order for item A, we have noticed that the cost of goods sold was incorrect as the system used the average cost that incorporated the wrong purchase cost prices mentioned above without regard of the credit notes and the re-invoicing to adjust the purchase cost price. When making a credit note sales invoice the system will not use the same average cost when returning the items back into the store, instead is uses the base cost price found in the item details form for item A.

How to adjust the average cost?

is there a need to make a credit note for sales invoice and then re-invoice after adjusting the average cost?

Please note that the inventory closing has not been done yet.

The following is the inventory model settings for item A:

Financial Negative Inventory: true

Post Financial inventory: true

Inventory Model: weighted average

Include physical value: false

fixed receipt price: false

*any option not mentioned is false

Item A's related settings in the item details form:

Setup->Price Update->Latest Purchase price: checked

Setup->Price Update->Latest Cost Price: checked

Setup->Price Update->Base Price: Purchase Price

*This post is locked for comments

I have the same question (0)
  • Guy Terry Profile Picture
    28,924 Moderator on at

    Hi H. Diab,

    Do I understand right that you've Received and Invoiced Item A on a PO, then Credited it (taking it out of stock) and Invoiced it again (at the correct price, bringing it back into stock)? And then you've sold it on a sales order? And everything happened in that order?

    Also, what do you mean where you say "When making a credit note sales invoice the system will not use the same average cost when returning the items"?

  • H. Diab Profile Picture
    350 on at

    yes you are right it happened in that order.  

    When the sales invoice was posted and we noticed the incorrect cost of goods sold, we thought crediting the sales invoice in-order to reverse it and assumed that the system will use the same average cost but it used the base cost price

  • Suggested answer
    Guy Terry Profile Picture
    28,924 Moderator on at

    Ah, OK.

    To fix the cost of the sales order, you would just need to run Inventory close (or recalculation). Since you are using an Actual Costing method, AX would match the cost of the first PO Invoice to the PO Credit, and the cost of the second PO Invoice to the Sales Order.

    Is that enough, or do we need to worry about the fact that you have since credited the sales order? i.e. did you credit the sales invoice in a test system, or in Live?

  • H. Diab Profile Picture
    350 on at

    we did the sales credit note in a test environment. I did a recalculation, but for some reason the cost is improper

  • Verified answer
    Guy Terry Profile Picture
    28,924 Moderator on at

    Sorry, I should have paid more attention that you are using Weighted Average. With this Inventory model, all 'Issues' (i.e. Sales orders, negative POs) in the same period are given the same value by Inventory close. Therefore, the sales order will be given the cost that is the average of the two POs invoiced in that period (plus the value of any on hand there may have been at the start of the period).

    You can use the 'Adjust transactions' form to adjust the cost price of an invoiced receipt:

    technet.microsoft.com/.../aa585975.aspx

    Open the Adjust transactions form, and hit the 'Select' button. Use Item Number and any other criteria to help narrow down the transaction(s) you need to adjust.

    In the 'Edit now' field, enter the value adjustment that you wish to make, such that 'Posted Value' + 'Edit now' equals the Value you wish the receipt to have. Then 'Post' the adjustment.

    The change to the cost of the PO line is immediate. Changes to the cost of any issues (e.g. Sales) will happen during the next inventory close.

    Think you should reach for your test system again before trying this in Live!

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi,

    Before running the recalculation or closing, you can use the marking functionality to relate the inventory transactions. You can mark the first purchase invoice with the purchase credit note. When needed you can mark more transactions. It is also possible to mark purchase receipts and sales deductions.

    When running the recalculation the marked transactions will be settled before using the actual inventory costing model for the remaining transactions.

    This marking will be your solution. Please test it in a separate environment with a fresh copy of the production data first to ensure it will be correct.

  • Suggested answer
    Daxer Persson Profile Picture
    3,005 on at

    Yes, marking the two incorrect PO-lines will overrule the general costing method. You can go the the credited PO-line and select Inventory - Marking and then mark the other incorrect line (or lines if there had been more). These marked lines will be handled as "pairs" with their own costing at inventory close.

    And leaving the remaining unsettled financially updated inventory transactions in the inventory close to the costing method.

  • Adam Seaton Profile Picture
    on at

    It seems you have the answers you need now, but you might be interested in a blog on our website about the adjustment function - you can view here www.seatonpartners.co.uk/.../deep-dive-average-cost-part-three

    Regards,

  • Suggested answer
    H. Diab Profile Picture
    350 on at

    I would like to thank you all for you invaluable help. This is what we did in our test environment:

    1) We adjusted all the entries with wrong value using the Closing and Adjustment ->Adjustment->Transactions, we did not post the adjustment to the GL (by un-checking the 'Update Ledger' option found the posting form)since credit notes were done against the wrong PO invoices , and Item A was re-invoiced correctly (this happened before the adjustment of course)

    2) We did a re-calculation for item A for the current period.

    now, the average cost is correct and the system adjusted whatever sales invoice issued (Cost of goods sold and the inventory account)

  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    You need to reference the finical lot id see e.g. technet.microsoft.com/.../aa582550.aspx

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans