Task #19370
openCost & Sales PDF and Charts to Reflect Partial Credit Notes and Exclude Full Credit Notes
66%
Description
A new column for displaying the partial credit notes should be added to the Cost & Sales PDF and the calculation of profit should take these partial credit notes into consideration.
These partial credit notes must be included in profit calculations and reflected in the Cost & Sales charts at both Vessel level and House level.
The PDF should not display full credit notes, and they should also be excluded from chart calculations and visuals.
Acceptance Criteria
Partial Credit Note Column (PDF)
- A new column is added to the Cost & Sales PDF to display the Partial Credit Note Amount per charge.
- The column is populated only for charges with partial credit notes.
Charges Without Partial Credit Notes
-
For charges without partial credit notes:
The Partial Credit Note column displays 0.00 (or blank, as per the formatting standard).
Exclude Full Credit Notes
- Charges with full credit notes:
- Are not displayed in the Partial Credit Note column.
- Are not considered in profit calculations.
- Are not considered in vessel- or house-level charts.
Profit Calculation
- Profit calculations in the Cost & Sales PDF must:
- Deduct partial credit note amounts from the respective charge values.
- Exclude full credit notes entirely from calculations.
Vessel Level Chart
- The Cost & Sales charts at the vessel level reflect the following:
- The net values are calculated only after applying partial credit notes.
- Full credit notes have no impact.
House Level Chart
- Cost & Sales charts at the house level reflect:
- Only partial credit notes are applied to the net values.
- No impact from full credit notes.
Layout
- No changes to existing PDF layout or chart design except for:
- Addition of the Partial Credit Note column
- Updated calculated values
GitLab Sync Log
[{"id": "38443", "author": "Avisham", "hours": 2.0, "created": "2026-02-09T11:13:27.066Z", "log_date": "2026-02-08", "comment": "Imported from GitLab by @Avisham on 2026-02-09T11:13:27.066Z: 2h-(2.0)h spend at: 2026-02-08", "status": "active", "deleted_by": "", "redmine_entry_id": 12221}, {"id": "39369", "author": "Avisham", "hours": 4.0, "created": "2026-02-26T10:03:39.944Z", "log_date": "2026-02-25", "comment": "Imported from GitLab by @Avisham on 2026-02-26T10:03:39.944Z: 4h-(4.0)h spend at: 2026-02-25", "status": "active", "deleted_by": "", "redmine_entry_id": 12429}]
Updated by Redmine Admin 22 days ago
- Status changed from New to Development Done
- GitLab Time Logged changed from 0 to 7200
Updated by Redmine Admin 5 days ago
- Status changed from New to Development Done
- % Done changed from 0 to 66
- Estimated time changed from 0:00 h to 9:00 h
- GitLab Time Logged changed from 7200 to 21600