Simple extension that historically stores when a Product ran out of stock.
Add this extension to your Gemfile with this line:
gem 'spree_out_of_stock', github: 'rogelio-meza-t/spree_out_of_stock'
Install the gem using Bundler:
Copy & run migrations
bundle exec rails g spree_out_of_stock:install
Restart your server
If your server was running, restart it so that it can find the assets properly.
Go to the reports section in the admin dashboard.
Select from the displayed list the option
Out of Stock.
Choose a date range of your preference and hit
The results are displayed as a simple table.
First bundle your dependencies, then run
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
cd spec/dummy bundle bundle exec rake
Then you can run test as follow
If you'd like to contribute, please take a look at the
instructions for installing dependencies and crafting a good
Copyright (c) 2017 [name of extension creator], released under the New BSD License