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

Fix outstanding balance calculation with refunds #1835

Closed

Conversation

ericsaupe
Copy link
Contributor

payment_total includes all refunds on the payments as well so there
is no reason to recalculate that in #outstanding_balance

Fixes #1475

@skukx
Copy link
Contributor

skukx commented Apr 20, 2017

For more detailed explanation see: #1475 (comment)

ericsaupe added 4 commits June 5, 2017 08:46
Created a spec to simulate the behavior listed in solidusio#1475 in order
to properly fix the issue.
payment_total includes all refunds on the payments as well so there
is no reason to recalculate that in #outstanding_balance
@ericsaupe ericsaupe force-pushed the fix-outstanding-balance branch from 840c0a4 to 7d5ea37 Compare June 5, 2017 16:00
Based on the regression test added in solidusio#1926 this change fixes
that spec by including refund_total in outstanding_balance
calculation if the order has not been canceled.
@ericsaupe ericsaupe force-pushed the fix-outstanding-balance branch from 7d5ea37 to a198895 Compare June 5, 2017 17:39
@ericsaupe
Copy link
Contributor Author

@jhawthorn updated with your regression test from #1926

@jhawthorn
Copy link
Contributor

Thanks Eric and Taylor. Closing in favour of #2002, which includes the specs from this.

@jhawthorn jhawthorn closed this Jun 21, 2017
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