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> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| i18n | ||
| pages | ||
| services | ||
| shared | ||
| utils | ||
| App.tsx | ||
| main.tsx | ||
| styles.css | ||
| vite-env.d.ts | ||