feat: add previous year total column to budget table (#16) #18
No reviewers
Labels
No labels
source:analyste
source:defenseur
source:human
source:medic
status:approved
status:blocked
status:in-progress
status:needs-fix
status:ready
status:review
status:triage
type:bug
type:feature
type:infra
type:refactor
type:schema
type:security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: maximus/Simpl-Resultat#18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/simpl-resultat-16-budget-previous-year"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Changes
src/shared/types/index.ts— addedpreviousYearTotalfield toBudgetYearRowsrc/hooks/useBudget.ts— fetch previous year entries and compute totalssrc/components/budget/BudgetTable.tsx— render the new column with header, per-row values, section totals, and grand totalsrc/i18n/locales/fr.json/en.json— addedbudget.previousYearkeyCHANGELOG.md/CHANGELOG.fr.md— added entry under UnreleasedFixes #16
Add a read-only column showing the annual budget total from the previous year for each category. This serves as a baseline reference when planning the current year's budget. - Add previousYearTotal field to BudgetYearRow type - Fetch previous year budget entries in useBudget hook - Display column between Category and Annual in BudgetTable - Propagate totals through parent/subtotal/section/grand total rows - Add i18n keys for FR ("Année préc.") and EN ("Prev. Year") Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>