AX2012 Recalculate Inventory Sum

There are times when you need to run the systems internal consistency check for an item to ensure the inventsum (Inventory levels) are correct. The below code will allow you to ensure the inventory levels are correct for an item.

InventSumRecalcItem InventSumRecalcItem;
;
InventSumRecalcItem = new InventSumRecalcItem(<Item Number>, true, checkfix::fix);
InventSumRecalcItem.updatenow();

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s