solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Reimbursement#unpaid_amount_within_tolerance?
If there are multiple different reimbursement types for a single reimbursement we open ourselves to a one-cent rounding error for every type over the first one. This is due to how we round #unpaid_amount and how each reimbursement type will round as well. Since at this point the payments and credits have already been processed, we should allow the reimbursement to show as 'reimbursed' and not 'errored'.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/reimbursement.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Reimbursement-unpaid_amount_within_tolerance--for-pr
# Commit to gitgit add core/app/models/spree/reimbursement.rbgit commit -m "better docs for Spree::Reimbursement#unpaid_amount_within_tolerance?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Reimbursement-unpaid_amount_within_tolerance--for-pr
hub pull-request
# Celebrate!