Task #17601
closedClearing: Cost and Sales values duplicate after multiple updates and approvals
Description
Steps to reproduce issue
using Url: http://maccs.staging.freight.mu/
- Navigate to Accounting > Ocean > Export > Clearing services > Clearing List
- Create a New Clearing File
- Fill in all mandatory fields
- Add Cost
- Add sales
- Save Clearing file
- Add HBL reference
- Approve
- Remove Hbl ref > Click on update > Click approve
- Repeat step ( Remove Hbl ref > Click on update > Click approve )
- Navigate back on clearing dashboard
- Re open Clearing file
Actual
- Added Costs and sales are duplicating
Expected
- Cost and sales fields should not duplicate
Initially Added cost and sales
{width="1105" height="435"}
After navigating back
{width="1112" height="296"}
{width="1100" height="452"}
GitLab Sync Log
[{"id": "17682", "author": "Gilles Mahomudally", "hours": 4.0, "created": "2025-03-10T05:25:43.793Z", "log_date": "2025-03-06", "comment": "Imported from GitLab by @Gilles Mahomudally on 2025-03-10T05:25:43.793Z: 4h-(4.0)h spend at: 2025-03-06", "status": "active", "deleted_by": "", "redmine_entry_id": 8987}, {"id": "17680", "author": "Gilles Mahomudally", "hours": 7.0, "created": "2025-03-10T05:25:22.343Z", "log_date": "2025-03-06", "comment": "Imported from GitLab by @Gilles Mahomudally on 2025-03-10T05:25:22.343Z: 7h-(7.0)h spend at: 2025-03-06", "status": "deleted", "deleted_by": "17681", "redmine_entry_id": 8988}, {"id": "34446", "author": "Yashvee Seetul", "hours": 1.0, "created": "2025-11-26T06:26:28.581Z", "log_date": "2025-11-23", "comment": "Imported from GitLab by @Yashvee Seetul on 2025-11-26T06:26:28.581Z: 1h-(1.0)h spend at: 2025-11-23", "status": "active", "deleted_by": "", "redmine_entry_id": 11403}]