Add shared cost allocation reporting

This commit is contained in:
tegwick 2026-08-11 11:05:13 +02:00
parent a28a40dfe9
commit b75ad06b3a
9 changed files with 348 additions and 15 deletions

View file

@ -116,7 +116,7 @@ prices remain auditable, and duplicate prices require an explicit revision.
```task
id: FIN-WP-0002-T03
status: todo
status: done
priority: medium
state_hub_task_id: "899a5c29-843c-481f-a63a-42d4d327af5d"
```
@ -130,11 +130,19 @@ where resource-control supplies it.
Test allocation totals, rounding, missing evidence, shared overhead, revised
allocations, and prevention of duplicate booked cost.
Completed 2026-08-11: added a reporting-only allocation consumer for current
resource-control `AllocationEvidence`. It requires uniquely claimed current
financial facts, validates period/environment/currency and producer totals,
retains the versioned method and provenance, and uses deterministic
largest-remainder minor-unit rounding. Per-instance targets plus the explicit
unattributed residual reconcile exactly to booked cost. Tests cover rounding,
missing facts, mismatches, evidence revisions, and duplicate allocation.
## Export a per-client billing basis
```task
id: FIN-WP-0002-T04
status: wait
status: todo
priority: medium
state_hub_task_id: "b5886131-82f6-49fb-a7e3-ba47d5b627a8"
```