Extension for Spree 3.0.4 to add a report in the backend to show all products that ran out of stock
Last updated on: December 01 at 04:01 PM
source code bug trackerThis extension provides a report in the Spree backend to show all products(SKU) that ran out of stock.
It will show all variants(with their descriptive name) that has zero items in the count_at_hand attribute.
The result can be filtered by a range of date, based on the updated_at attribute of the variant.
Add spree_report_products_ran_out_of_stock to your Gemfile:
gem 'spree_report_products_ran_out_of_stock', :git => 'https://github.com/cassioscabral/spree_report_products_ran_out_of_stock.git'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_report_products_ran_out_of_stock:install
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_report_products_ran_out_of_stock/factories'
Copyright (c) 2015 Cassio S. Cabral, released under the MIT License
tags | spree versions |
---|---|
master | ~> 3.0.4 |