Task #19532
closedMCL - File Reference / HBL Invoicing - "Separate Invoice for Disbursement" generates 2 invoices but both contain all charges
Description
Tenant: MCL
Environment: Production v 1.1.18
Issue:
When the user selects "Separate Invoice for Disbursement" for an HBL that contains 1 disbursement charge, the system generates 2 invoices as expected. However, both generated invoices contain all charges, instead of separating the disbursement charge from the non-disbursement charges.
Preconditions
- File Reference exists with HBL charges.
- There is 1 charge marked as Disbursement.
- Other charges are non-disbursement.
- User has access to generate invoices from the HBL invoice screen.
Test Data / Reference
- File Reference: MCL26SFI03019
Steps to Reproduce
- Open Ocean Import → File Reference.
- Open file reference MCL26SFI03019.
- Go to the HBL Charges / Invoice screen.
- Ensure there is 1 disbursement charge and other normal charges.
- Select "Separate Invoice for Disbursement".
- Generate invoices.
- Open the list of generated invoices.
Actual Result
- The system generates 2 invoices.
- One invoice is marked with Disbursement = Yes and the other with Disbursement = No.
- However, both invoices contain all charges.
- There is no separation between:
- the disbursement charge, and
- the remaining non-disbursement charges.
Expected Result
When "Separate Invoice for Disbursement" is selected:
- The disbursement invoice should contain only the disbursement charge(s).
- The standard/non-disbursement invoice should contain only the other charges.
- Charges must not be duplicated across both invoices.
File Reference - HBL Sales Charges
On the HBL charges screen, only one charge is marked as Disbursement.
{width="1132" height="539"}
Activity Log for File Reference last updated on 10-Mar-2026 15:50
{width="898" height="198"}
Invoice screen
- The user selected "Separate Invoice for Disbursement"
- The system has generated 2 invoices, including the one for disbursement; however, note that both invoices are listing all the charges. No differentiation between the disbursement charge and the other charges.
{width="1392" height="355"}
Invoice creation logged on 10-Mar-2026 16:01
{width="885" height="171"}
Attached are the 2 invoices generated by the system.
GitLab Sync Log
[{"id": "40150", "author": "Avisham", "hours": 4.0, "created": "2026-03-11T11:29:58.513Z", "log_date": "2026-03-10", "comment": "Imported from GitLab by @Avisham on 2026-03-11T11:29:58.513Z: 4h-(4.0)h spend at: 2026-03-10", "status": "active", "deleted_by": "", "redmine_entry_id": 12600}]
Updated by Redmine Admin 6 months ago
- Status changed from New to Development Done
- GitLab Time Logged changed from 0 to 14400
Updated by Redmine Admin 6 months ago
- Status changed from Development Done to QA
Updated by Redmine Admin 5 months ago
- Status changed from QA to Closed
- % Done changed from 0 to 100