Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a few more specs to outstanding_balance_integration_spec #3

Conversation

jordan-brough
Copy link

No description provided.

jhawthorn and others added 8 commits June 7, 2017 16:33
This updates outstanding_balance to use the value of "reimbursements"
when determining the payment total.

Previously the value of an order's refunds was used both for
representing the money returned to the customer as well as the reduced
"adjusted total" of the order (which we expected to be paid). This was
wrong in a number of cases.

This commit updates outstanding_balance to use the value of
reimbursements for calculating the "adjusted total" of the order. This
allows all cases to (at least) be represented properly. This better
matches the best practice double-entry bookkeeping style.

Reimbursements are created when going through the refund system so this
should continue to work for cases where refunds where made through the
returns system.
Created a spec to simulate the behavior listed in solidusio#1475 in order
to properly fix the issue.
…ulation"

This reverts commit da0f0e73ed0fd01ec6188757063ea26918c473e8.
Update this spec to match the values it currently returns.

I changed the values in this spec into what values we got from the
system, which isn't ideal, but I think these values make sense.

We have a payment for an amount and a refund for the same amount, so
payment total should be zero. Because the order is cancelled, this is
the state we want, and the outstanding balance should be zero.
@jhawthorn jhawthorn force-pushed the outstanding_balance_omnibus branch 3 times, most recently from b0d21bc to 6a031da Compare June 22, 2017 22:40
@jordan-brough
Copy link
Author

Opened as a PR against solidusio/solidus: solidusio#2051

@jordan-brough jordan-brough deleted the outstanding_balance_omnibus_extra_specs branch June 28, 2017 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants