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'.

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/models/spree/reimbursement.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Reimbursement-unpaid_amount_within_tolerance--for-pr


# Commit to git

git add core/app/models/spree/reimbursement.rbgit commit -m "better docs for Spree::Reimbursement#unpaid_amount_within_tolerance?"


# Open pull request

gem 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!