-
Notifications
You must be signed in to change notification settings - Fork 7
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
Disallow refund if payment hasn't been exported yet .... #24
Comments
I've added a test case to reproduce the behavior you are describing and think the change works as intended by @pc-coholic, but has a misleading commit message. The change you highlighted is just short-circuiting the payment I think the mess you are getting orginates from somewhere else, can you describe it in more detail? |
payment_refund_supported shall return false in case there was no export:
Otherwise on refund a sepa debit which wasn't exported:
I just started my development setup and diving into the code. |
why should a non exported refund not work? i think it should just so the payment from ever being exported |
Yes, that's the question that raised me too. Actually payment_refund_supported will always return True (!) Still a refund must be generated and exported bc the debit will be in the next export (fix execute_refund). Also regarding the case: a part of the order gets a refund (e.g. storno one ticket) .... cancel or modifying a pending debit??! Note: While testing I found a display bug of the sepa debits within the order view. I'll file another issue about. |
payment_refund_supported is only validating that all information is available and correct to issue a refund. As long as your exported payments aren't corrupted it should return True. refund.done() marks the payment as refunded. Only confirmed payments are exported by the OrganizerExportListView and the ExportListView. -> An unexported payment can be refunded by setting its state to refunded and never exporting it |
After some more testing and hacking, I come to the conclusion I was not expecting this results:
That makes me wonder. It's the other way around, isn't it?
case b) did not make sense to me ... (use case?) so I was expecting this should be better disallowed case b) I refund full or a part of the amount I must manually refund? I'll expect same outcome as case a) |
Hello,
actually I can refund a sepadebit which wasn't exported,
which leads in some mess ...
Can anyone triplecheck this change:
8871493
Please note the not in the if clause.
The text was updated successfully, but these errors were encountered: