-
Notifications
You must be signed in to change notification settings - Fork 2
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
Receipt shows the wrong balance when learner is refunded using the refund management command #1293
Comments
Can you write up / mock up what the receipt should look like in this case? |
@pdpinch Yes! Good suggestion. Scenario 1 - User unenrolls and is refunded
The current receipt shows each payment and refund listed out. In order to generate the receipt appropriately, you'll need to search for all records for the same user and Bootcamp run. Note that a new order is created when a user is fully refunded for a bootcamp. The receipt should look like this:
Note that Scenario 2- User does not unenroll, but is refunded
The receipt should look like this:
|
Steps to Reproduce
refund
management command:python manage.py refund --user [email protected] --run 31 --amount 2000
refunded
)Here's an example of a $2000 purchased bootcamp followed by a $2000 refund:
Expected Behavior
Actual Behavior
Additional notes
refund
management command is run, it creates a new order record for the refund. The receipt should include both the purchase and refund in the receipt. They are for the same run.Related Issues
PR: #994
The text was updated successfully, but these errors were encountered: