Skip to content

[Bug]: Automated Tests are failing with Contoso Demo Data - Inventory Account missing #28899

@miljance

Description

@miljance

Describe the issue

Since BC25.2 a new Contoso Demo Data Tool has been introduced. This Tool sets up two Inventory Posting Groups:

Image

In Inventory Posting Setup however only one of those gets Inventory Account defaulted:

Image

However when a function CreateItem from LibraryInventory is called the first Inventory Posting Group gets defaulted for an Item:

Image

This leads to failing test in some of the scenarios utilizing the LibraryInventory.CreateItem call.

Image Image

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.

Image Image

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions