Project

General

Profile

Actions

Task #19365

closed

Charge Template - Duplicate Charge Appears in Charge Template After Save (Intermittent Issue)

Added by Redmine Admin 7 months ago. Updated 3 months ago.

Status:
Closed
Priority:
High
Assignee:
-
Start date:
01/30/2026
Due date:
01/30/2026
% Done:

100%

Estimated time:
0:00 h
Spent time:
GitLab ID:
3771
GitLab Milestone:
GitLab Ticket Number:
1180
GitLab Time Logged:
7200
Lock Timeline Date:
No
gitlab project trace:

Description

In the Charge Template module, when saving a charge (e.g., Document Fee), the same charge sometimes appears twice in the charge list after saving.

This issue is intermittent and difficult to consistently reproduce. It was first observed at Logideals and has since occurred again at United Cargo.

The duplication occurs without the user intentionally adding the charge twice, indicating a potential issue with save logic, UI refresh, or duplicate submission handling.

Steps Observed (Intermittent)

  1. Navigate to Charge Template
  2. Click to Add New Charge Template
  3. Add a charge (e.g., Doc Fee)
  4. Click Save
  5. Observe that the same charge appears twice in the charge list (occasionally)

Expected Result

  • The charge is saved once and appears only once in the charge list.

Actual Result

  • The same charge appears twice after saving.

Acceptance Criteria

No Duplicate Charges

  • On saving a charge in Charge Template:
    • The charge appears only once in the list.
    • Duplicate entries are not created, even on repeated or rapid save actions.

Idempotent Save

  • Multiple save triggers (double-click, latency, refresh) do not create duplicate charge records.

Data Integrity

  • Backend enforces uniqueness to prevent duplicate charge creation for the same template.

Stability

  • Fix addresses intermittent behaviour and remains stable across repeated testing.

GitLab Sync Log

[{"id": "38137", "author": "Avisham", "hours": 1.0, "created": "2026-02-04T09:57:16.250Z", "log_date": "2026-02-03", "comment": "Imported from GitLab by @Avisham on 2026-02-04T09:57:16.250Z: 1h-(1.0)h spend at: 2026-02-03", "status": "active", "deleted_by": "", "redmine_entry_id": 12153}, {"id": "39778", "author": "Yashvee Seetul", "hours": 1.0, "created": "2026-03-05T06:16:32.376Z", "log_date": "2026-03-04", "comment": "Imported from GitLab by @Yashvee Seetul on 2026-03-05T06:16:32.376Z: 1h-(1.0)h spend at: 2026-03-04", "status": "active", "deleted_by": "", "redmine_entry_id": 12517}]

Actions #1

Updated by Redmine Admin 7 months ago

  • GitLab Sync Log updated (diff)
Actions #2

Updated by Redmine Admin 7 months ago

  • Status changed from New to Development Done
  • GitLab Time Logged changed from 0 to 3600
Actions #3

Updated by Redmine Admin 7 months ago

  • GitLab Sync Log updated (diff)
Actions #4

Updated by Redmine Admin 7 months ago

  • Status changed from Development Done to QA
Actions #5

Updated by Redmine Admin 6 months ago

  • Status changed from QA to Closed
  • % Done changed from 0 to 100
  • GitLab Time Logged changed from 3600 to 7200
Actions #6

Updated by Redmine Admin 6 months ago

  • GitLab Sync Log updated (diff)
Actions

Also available in: Atom PDF