-
Notifications
You must be signed in to change notification settings - Fork 9.4k
add opportunity to cancel invoice if invoice state == STATE_PAID #19439
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
Conversation
check if invoice already cancelled
|
Hi @omaxmo. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
@omaxmo thanks for the contribution! I see there is an open question in the issue #18509 (comment) Can invoice be cancelled if it is paid? If yes then should cancellation create a credit memo ond refund the paid sum? |
@sivaschenko Magento had opportunity to cancel invoice with state == STATE_PAID. The opportunity has been lost in #9968 #11261 . Not sure about credit memo and refund. Anyway we have some code which will never be used if we not have opportunity to cancel invoice if invoice state == STATE_PAID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR will break the most PSP-Provider we should close.
For more Information see:
https://github.com/magento/magento2/pull/11261/files
|
@omaxmo Could you double check if these changes break PR 11261? @larsroettig From my perspective, this will not break the PR, since isCanceled will prevent invoice to be canceled again. |
|
@omaxmo As I see the button to cancel invoice is also available only in the case when status is open |
|
@omaxmo this is not a valid change, reported issue is closed as invalid, see #18509 (comment) for more details. Thanks for collaboration! |
Description (*)
We can cancel invoice if invoice state == self::STATE_OPEN but we can't cancel invoice if invoice state == STATE_PAID.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)