Recalculate InventSum
Sample Code :
// CODE BEGIN ****************************
InventSumRecalcItem InventSumRecalcItem;
;
InventSumRecalcItem = new InventSumRecalcItem("ITEM001", true, checkfix::fix);
InventSumRecalcItem.updatenow();
// CODE END ******************************
First parameter : ItemId
Second parameter : Show errors
Third parameter : Fix or only check
If you want to calculate for all items :
// CODE BEGIN ****************************
InventTable InventTable;
InventSumRecalcItem InventSumRecalcItem;
;
WHILE SELECT InventTable
WHERE (InventTable.ItemType == ItemType::Item) || (InventTable.ItemType == ItemType::BOM)
{
InventSumRecalcItem = new InventSumRecalcItem(InventTable.ItemId, true, checkfix::fix);
InventSumRecalcItem.updatenow();
}
// CODE END ******************************
与本文相关的文章
- 如何在 Dev Box 中的 Visual Studio(DevTools) 中添加 Dynamics 365 扩展 / How to Add Dynamics 365 Extension in Visual studio(DevTools) in Dev Box
- 在 Dynamics 365 F&O 中发布到生产环境 / Release to Production Environment in Dynamics 365 F&O
- 在 Dynamics 365 F&O 中发布到生产环境 / Release to Production Environment in Dynamics 365 F&O
- 在 10.0.21 发布的新开发人员 VM 上将数据库从两层 (.BACPAC) 转换为1层 (.BAK) / CONVERTING DATABASE FROM TIER 2 ( .BACPAC ) TO TIER 1 ( .BAK ) ON NEW DEVELOPER VM RELEASED WITH 10.0.21
- 理解SQLDictionaryTable和AX数据同步 / Understanding SQLDictionaryTable and AX data synchronization
- 在dynamics 365 财务和运营中设置版本控制 / Setting up Version control in dynamics 365 for operations