- 🇮🇹Italy sepa_cleversoft
Maybe it's easier to just think about a simple logic to recalculate the balance in transaction executed later than the modified or deleted one.
In this case a simple hook or event subscriber would be enought.
Currently there is not a roll-back function to "undo" executed transactions. Executed transactions can not be updated or deleted to preserve the integrity of the transaction flow. The right way to revert a transaction is by creating a new one that does the same as the first, but in the opposite direction. For example, a payment refund is the reverse transaction for a executed payment transaction.
Add reverse transaction generation support.
The basic implementation steps would be:
Additional notes:
The action link to revert a transaction.
New methods in transaction entity type interface to revert the transaction.
None.
Please, read the contribute section in the documentation guide → to find out how you or your organization can support this planned feature.
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Maybe it's easier to just think about a simple logic to recalculate the balance in transaction executed later than the modified or deleted one.
In this case a simple hook or event subscriber would be enought.