solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Adjustment#recalculate
Recalculate and persist the amount from this adjustment's source based on
the adjustable ({Order}, {Shipment}, or {LineItem})
If the adjustment has no source (such as when created manually from the
admin) or is closed, this is a noop.Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/adjustment.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Adjustment-recalculate-for-pr
# Commit to gitgit add core/app/models/spree/adjustment.rbgit commit -m "better docs for Spree::Adjustment#recalculate"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Adjustment-recalculate-for-pr
hub pull-request
# Celebrate!