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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Update InventSum transaction

(0) ShareShare
ReportReport
Posted on by 916

Hi There,

Firstly , i create and post the inventory adjustement journal.So i have new cost price calculated for the item .

When i create new inventory adjustement journal , i need get the updated cost price from 

Product information management/Common/Released products/Item001/Manage inventory/on hand inventory/On hand/ cost Price.

So to do that i edit the method setCostPrice() on the table InventJournalTrans like this

this.CostPrice          = InventSum::find(this.ItemId,this.InventDimId).costPricePcs();

The problem is i still getting the preview value of cost Price because the InventSum.PosteValue is not updated, but when clear the cach i get the correct value of cost price.

Would you please help me what  is the causing for such issue, and how can it be fixed ???? 

Is there a way to recalculate inventSum with the updated value?

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Alex

    Due to the cache issue, isn't advisable access directly to the InventSum table.

    So, use the inventOnHand Class

    Take a look to the inventSumUnitPrice_IN standard method of the InventTransferLine Table.

  • Verified answer
    Luan Nguyen Profile Picture
    689 on at

    try recalculate inventSum:

    InventSumRecalcItem InventSumRecalcItem;

    ;

    InventSumRecalcItem = new InventSumRecalcItem("ITEM001", true, checkfix::fix);

    InventSumRecalcItem.updatenow();

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans