Describe the issue
Since BC25.2 a new Contoso Demo Data Tool has been introduced. This Tool sets up two Inventory Posting Groups:
In Inventory Posting Setup however only one of those gets Inventory Account defaulted:
However when a function CreateItem from LibraryInventory is called the first Inventory Posting Group gets defaulted for an Item:
This leads to failing test in some of the scenarios utilizing the LibraryInventory.CreateItem call.
Expected behavior
No automated test should because of a missing Inventory Account for data that was created using Contoso Demo Tool.
Steps to reproduce
Run all of the Subscription Billing test in a freshly created company using Contoso Demo Tool. 15 scenarios will fail because of the missing Inventory Account.
Additional context
I would like to fix the Contoso Demo Tool so that Inventory Account gets defaulted for Raw Materials in the same way as for Retail.
I will provide a fix for a bug