Skip to content

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

Open
@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: RAW MAT and RESALE.

Image

In Inventory Posting Setup however only one of those gets Inventory Account set to existing account: for RESALE Inventory Account is set 2110 for all locations.

Image

However when a function CreateItem from LibraryInventory is called the first available Inventory Posting Group gets defaulted for an Item and that is RAW MAT.

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