View Activity Attribution Rollup Across Organizational Levels
The Activity Attribution Service walks the organizational hierarchy upward to aggregate activity counts at each level. When viewing a regional unit detail, the activity statistics reflect the sum of all local associations under that region. When viewing a national association, it reflects the sum across all its regions and their respective local associations. This roll-up data is surfaced directly on the Org Level Widget and in more detail on the Org Level Detail Screen. The attribution logic ensures that activities registered at different levels are not double-counted in parent aggregations, which is critical for equitable Bufdir grant justification.
User Story
Acceptance Criteria
- Given I am viewing a local association detail, when I look at the activity statistics section, then I see the count of activities registered directly under that local association
- Given a region has three local associations each with 50 activities, when I view the region detail's activity statistics, then the total shows 150 activities correctly aggregated
- Given an activity is registered at regional level (not tied to a specific local association), when I view the national association's total, then it includes both local-level and region-level activities without duplication
- Given I am reviewing activity attribution before a Bufdir report period, when I compare the sum of all local associations under a region against the region's reported total, then the numbers match exactly
- Given a local association has no registered activities in the selected period, when I view its detail, then the activity count shows zero rather than inheriting from parent
Business Value
Accurate activity attribution across organizational levels is the core business requirement that justifies the entire organizational structure system. Bufdir grant allocations are based on reported activity counts per tier. Incorrect roll-ups or double-counting could result in grant over-reporting (a compliance risk) or under-reporting (a financial loss). This story directly enables accurate, auditable grant documentation.