solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Shipment#finalize!
Decrement the stock counts for all pending inventory units in this shipment and mark. Any previous non-pending inventory units are skipped as their stock had already been allocated.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/shipment.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Shipment-finalize--for-pr
# Commit to gitgit add core/app/models/spree/shipment.rbgit commit -m "better docs for Spree::Shipment#finalize!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Shipment-finalize--for-pr
hub pull-request
# Celebrate!