solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::OrderInventory#verify
Only verify inventory for completed orders (as orders in frontend checkout have inventory assigned via +order.create_proposed_shipment+) or when shipment is explicitly passed In case shipment is passed the stock location should only unstock or restock items if the order is completed. That is so because stock items are always unstocked when the order is completed through +shipment.finalize+
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/order_inventory.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--OrderInventory-verify-for-pr
# Commit to gitgit add core/app/models/spree/order_inventory.rbgit commit -m "better docs for Spree::OrderInventory#verify"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--OrderInventory-verify-for-pr
hub pull-request
# Celebrate!