Task #17607
closedTask #16334: Ocean Sprint Planning for 24/02/2025 - 11/03/2025
Freight Purchase - Restrict Deletion of Freight Purchases Linked to a File Reference
Description
As a FFWD
I want to prevent users from deleting a freight purchase once it has been used in a file reference
So that financial records remain accurate and audit trails are maintained.
Acceptance Criteria:¶
-
Freight Purchase Usage Check:
- When a user attempts to delete a freight purchase, the system must check if it has been linked to a file reference.
-
Restriction on Deletion:
- If the freight purchase has been used in a file reference, the system must:
- Disable the delete option for the user.
- On hovering on the delete button, display an error message:
"This freight purchase cannot be deleted as it is already linked to a file reference."
- If the freight purchase has been used in a file reference, the system must:
-
Audit Trail & Logging:
- Any modification attempt should be logged in the system for audit purposes.
- The log should include the user details, timestamp, and attempted changes.
GitLab Sync Log
[{"id": "16978", "author": "Avisham", "hours": 1.0, "created": "2025-03-04T08:05:18.728Z", "log_date": "2025-03-03", "comment": "Imported from GitLab by @Avisham on 2025-03-04T08:05:18.728Z: 1h-(1.0)h spend at: 2025-03-03", "status": "active", "deleted_by": "", "redmine_entry_id": 8993}, {"id": "34443", "author": "Yashvee Seetul", "hours": 1.0, "created": "2025-11-26T06:25:25.045Z", "log_date": "2025-11-23", "comment": "Imported from GitLab by @Yashvee Seetul on 2025-11-26T06:25:25.045Z: 1h-(1.0)h spend at: 2025-11-23", "status": "active", "deleted_by": "", "redmine_entry_id": 11407}]
Updated by Redmine Admin 15 days ago
- Status changed from QA to Closed
- % Done changed from 0 to 100
Updated by Redmine Admin 14 days ago
- GitLab Time Logged changed from 3600 to 7200