spree_report_products_ran_out_of_stock

spree extension for solidus 2.2

Last updated on: September 09 at 04:39 PM

source code bug tracker
Opensource
0 0 1
owner:  sechix

SpreeReportProductsRanOutOfStock

This 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.

Installation

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

Testing

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

compatible spree versions
tags spree versions
master
authors
Cassio S. Cabral