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)

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

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