REQ-FUN-115
Budget allocation at project, WBS branch, and activity levels
What
System SHALL support assigning a budgeted_amount (decimal cents) and a cost category to each project, each work package, and each schedule activity. Roll-up consistency: project budget SHALL equal the sum of its work-package budgets when both are set; work-package budget SHALL equal the sum of its activity budgets when both are set. Mismatches surface as a warning, not a hard error (MVP).
Why
established project management guidelines Estimate Costs + Determine Budget produce per-WBS-element cost estimates and an aggregated cost baseline.
How
budget_allocation table (subject_kind, subject_id, amount_cents, category_id, currency, set_by, set_at); query endpoints /v1/projects/{id}/budget return the hierarchical roll-up.
Done when
Setting an activity budget updates the WBS-branch and project roll-up totals; the warning fires when totals mismatch; storage precision is exact integer cents (see REQ-NFR-070).
Out of scope
Funding requirements scheduling; multi-currency conversion (REQ-FUN-122).
established project management guidelines Mapping
established project management guidelines Estimate Costs / Determine Budget output.