Sometimes you may see some discrepancy in InventSum table for any item then you may need to recalculate inventsum for particular item. You can try below code to do it.
This job will recalculate InventSum for specific item.static void InventSum_Recalculate(Args _args)
{
InventSumRecalcItem InventSumRecalcItem;
InventTable _InventTable;
while select * from _InventTable where _InventTable.ItemId == '61142A'
{
ttsBegin;
InventSumRecalcItem = new InventSumRecalcItem(_InventTable.ItemId, true, checkfix::fix);
InventSumRecalcItem.updatenow();
ttsCommit;
}
info("Done");
}

Like
Report
*This post is locked for comments