Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

really not track inventory when inventory tracking is turned off #6429

Conversation

peterberkenbosch
Copy link
Member

Work in progress:

  • add specs
  • search for other places that handle stock and do not use Spree::Config.track_inventory_levels correctly

@TeatroIO
Copy link

I've prepared a stage to preview changes. Open stage or view logs.

next unless stock_location.stock_items.where(:variant_id => inventory_units.map(&:variant_id).uniq).exists?

if Spree::Config.track_inventory_levels
next unless stock_location.stock_items.where(variant_id: inventory_units.map(&:variant_id).uniq).exists?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [116/100]

@bbonislawski
Copy link
Contributor

I think that this is outdated already. If you think that it's not outdated, please mention me in comment and I'll reopen it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants