Task #16973
closedTask #16334: Ocean Sprint Planning for 24/02/2025 - 11/03/2025
Payment: Cancellation of Payments
Description
Description
Userstory: https://gitlab.maccs.mu/rnd/ffa/ffa-fe/-/issues/233
As a user, I want to cancel a payment that I made, so that I can stop the transaction if I no longer wish to proceed with the payment.
Acceptance Criteria:
Add a cancel payment button , the user should have an option to cancel a payment before it is fully processed.The user should receive a confirmation prompt before proceeding with the the payment cancellation.The payment status should be updated to “Canceled” on the Retrieve invoice payment page.
Points To be discussed
The user should be informed of any potential consequences or fees associated with canceling the payment.If the payment is successfully canceled, the customer should receive a notification informing payment cancelled successfully.
Title: Enable users to cancel payments and handle associated actions like issuing credit notes and refunds within the system.
As a user
I want to be able to cancel payments that have been erroneously made or need to be voided or are linked to bounced cheques or have been overbilled
So that I can correct any mistakes and ensure accurate financial records, issue credit notes, and process refunds if necessary.
Acceptance Criteria:
-
Cancel Payment Action:
- The system must provide an option to cancel a payment from the payment details page screen.
- Only authorized users (such as managers) should be able to perform the cancellation action.
-
Confirmation Prompt:
- When selecting "Cancel Payment," a confirmation prompt must appear to ensure the user understands that:
- This action is irreversible.
- A new receipt will need to be issued after cancellation.
- The prompt should include a field for entering a reason for the cancellation, which must be mandatory.
- When selecting "Cancel Payment," a confirmation prompt must appear to ensure the user understands that:
-
Cancellation Status Update:
- Once confirmed, the payment status will be updated to “Cancelled” in the system.
- The payment should no longer be considered active and should not be included in any financial reports or balance calculations.
-
Audit Trail:
- The system should keep a detailed log of the cancellation event, including:
- User who cancelled the payment.
- Time and date of cancellation.
- Reason for cancellation.
- This information should be available for review in the system audit logs.
- The system should keep a detailed log of the cancellation event, including:
-
Impact on Related Transactions:
- If the cancelled payment is linked to an invoice, the system should automatically update the status of that invoice to reflect the payment cancellation.
- The system should prompt users to take further action, such as initiating a refund, if necessary. E.g. If a credit note is issued, a refund request should be automatically generated and sent to the accounting department for further processing.
-
Notifications:
- After cancellation, notifications should be sent to relevant stakeholders (e.g., the finance team, client, or vendor) to inform them of the payment cancellation and if any refund request is needed.
- The notification should include the payment details, cancellation reason, and next steps, if applicable.
-
Reversal of Financial Impact:
- The system should automatically reverse any financial impact the payment had (e.g., (e.g., recalculating available balance, reversing the transaction).
Dependencies:
- Role-based access control to ensure only authorized users can cancel payments, issue credit notes, and process refunds.
GitLab Sync Log
[{"id": "14004", "author": "Cedric Roussel", "hours": 16.0, "created": "2025-01-22T05:14:53.174Z", "log_date": "2025-01-22", "comment": "Imported from GitLab by @Cedric Roussel on 2025-01-22T05:14:53.174Z: 2d-(16.0)h spend at: 2025-01-22", "status": "active", "deleted_by": "", "redmine_entry_id": 8488}]