Deduction calculation sets - Report and invoice/statement handling - Test case !
Purpose / Description
Following the introduction of negative values from calculation sets, it is important to outline the expected effect of such behaviour on reports and documentation.
Use Case
| As a system I need to handle deduction calculation sets in reports and documentation | |
| Primary Actor(s) |
Business user who generates or reviews reports, statements and invoices. Recipient of the statement or invoice (counterparty, fund or investor). |
| Stakeholders and Interest |
Fee/commission accounting and billing: need documents whose amounts match the calculation result. Counterparties and investors: need clear, correct statements and invoices. Product owner and business analysts: need consistent presentation across reports and documents. |
| Trigger |
A user runs a report, or a statement or invoice is generated, for a calculation result that includes one or more deduction calculation sets. |
| Pre-condition(s) |
The calculation has been completed and contains at least one calculation set with deduction = Yes. The report or document template exists and is assigned to the agreement - if applicable |
| Post-condition(s) |
The report or document shows the amounts according to its detail level: deduction amounts with a minus at calculation set level, or the netted sum (with a minus if negative) without calculation set details. The shown amounts reconcile with the calculation result. |
| Main success scenario |
|
| Extensions |
X1: Report with drill-down. The user drills down from a total to calculation set level; deduction amounts are then shown with a minus. X2: Mixed layout. A document has a netted total and a detail section; the total follows the netted sum rule and the detail section follows the calculation set rule. X3: No deduction sets. Reports and documents are shown as today. X4: Credit note or invoice created by negative result. The document shows the netted amount according to the netted sum rule (see open questions on sign presentation). X5: If VAT is involved, the VAT relating to a negative amount comes up as a negative value as well |
| Exception scenarios |
The invoice/retrocession terms report needs to be enhanced to cover this type of details (separate use case) |
| Special requirements |
The same sign rules apply to all outputs (online reports, exports, PDF statements and invoices). Amounts shown must always reconcile with the calculation result. Existing reports and documents without deduction sets must not change. |
| Open questions |
|
Mockup
|
Calculation set |
Deduction |
Amount shown |
|
Commission calculation |
No |
1,000.00 |
|
Custody fee |
No |
200.00 |
|
Performance fee |
Yes |
-300.00 |
|
Total |
|
900.00 |
Functional Requirements
|
If a report or document has a detail level that drills down to calculation set level, the amount of every calculation set with deduction = Yes is shown with a minus in front. |
|
Amounts of calculation sets with deduction = No are shown without a minus (unless the amount itself is negative). |
|
If a report or document refers to a netted sum of calculation sets, the details of the individual calculation sets are not visible. |
|
If the netted sum is negative, the amount is shown with a minus in front. |
|
The totals shown must equal the netted result of the calculation engine (sum of regular sets minus sum of deduction sets). |
|
FR6: The rules apply to reports, statements and invoices, for Agreements IN, Agreements OUT and Standard conditions. |
|
The rules apply on screen, in exports and in generated documents (for example PDF). |
|
Reports and documents for calculations without deduction sets remain unchanged. |
|
Whether a report or document is shown at calculation set level or at netted sum level is determined by its detail level or template definition. |