solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::StockItem#process_backorders
Process backorders based on amount of stock received If stock was -20 and is now -15 (increase of 5 units), then we should process 5 inventory orders. If stock was -20 but then was -25 (decrease of 5 units), do nothing.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/stock_item.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--StockItem-process_backorders-for-pr
# Commit to gitgit add core/app/models/spree/stock_item.rbgit commit -m "better docs for Spree::StockItem#process_backorders"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--StockItem-process_backorders-for-pr
hub pull-request
# Celebrate!