Skip to content

Stock items creation not adjusted for multi vendor #182

@omairrazam

Description

@omairrazam

We need to make 2 adjustments which I think were missed.

  1. variant.rb
    method = create_stock_items
    issue = it loops on all stock locations which don't event belong to given vendor
    expected = only create stock items for respective vendor's stock location

  2. stock_location.rb
    method = create_stock_items
    issue = it loops on all variants of all vendor's.
    expected = only create stock item for respective vendor variants.

Overrall Impact faced:

i faced serious performance issue as number of vendors and products increased on my platform and I was able to find this as reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions