Transaction amounts are already signed in the DB (expenses negative, income positive). Remove Math.abs() normalization and stop multiplying by sign at display time to avoid double negation. Extract buildPrevYearTotalMap as a testable exported function and rewrite tests to import the real function instead of reimplementing it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| useAdjustments.ts | ||
| useBudget.test.ts | ||
| useBudget.ts | ||
| useCategories.ts | ||
| useDashboard.ts | ||
| useDataExport.ts | ||
| useDataImport.ts | ||
| useImportHistory.ts | ||
| useImportWizard.ts | ||
| useReports.ts | ||
| useTheme.ts | ||
| useTransactions.ts | ||
| useUpdater.ts | ||