Commit Graph
17 Commits
Author SHA1 Message Date
Herculino Trotta 00d37d8c81 refactor(currencies): keep the exchanged amounts display rule in one place
Account.displayed_exchange_currency holds the account/currency precedence for transactions, and shown_exchange_currency() expresses the same rule as a query expression for the insights and account totals, replacing the per-module checks.
2026-11-11 10:22:50 -03:00
Asish Kumar d3f29f5ad1 feat(currencies): make displaying exchanged amounts optional
Currencies and accounts get a "Show exchanged amounts" switch, on by
default. Turning it off hides the amounts converted to the exchange
currency without removing the exchange currency, so consolidated totals
on the Net Worth page keep working.

The switch belongs to whichever one provides the exchange currency:

- Transactions (including both legs of combined transfers) use the
  account's switch when the account has its own exchange currency, and
  the currency's switch otherwise, matching how the exchanged amount is
  picked.
- Account cards and Net Worth account rows follow the account.
- Currency cards, the monthly summary and daily allowance, Net Worth
  currency rows and the month-by-month and year-by-year insights follow
  the currency.

Currency totals still convert hidden currencies, because the
consolidated totals are built from those values; the setting only
leaves them out of the displayed data. The API keeps returning
exchanged_amount for transactions, and the account serializer exposes
the new field (currencies already serialize all fields).

Closes #486
2026-11-11 15:26:04 +05:30
Herculino Trotta 55f064ee7c feat(distribution): bracket projected + current segments with their sum
Remove the unused exchanged branch from calculate_percentage_distribution; nothing read it and it mixed up income_current with expense_projected.
2026-11-08 20:16:13 -03:00
Herculino Trotta 9f9146aaec feat(transactions): search transactions by date, amount, entity and account
Each word of the query must match something, and words can match
different fields: description, notes, category, tags, entities, account
and account group, a date in the user's format (the year is optional),
or an amount in the user's number format, where a whole number like 234
matches 234.00 to 234.99.

Matching through an id subquery also stops transactions with several
matching tags from showing up more than once.
2026-11-08 03:27:21 -03:00
Herculino Trotta aa3ffe9b3e feat(transactions): render the transaction picker as a mini transaction
TransactionSelect options now look like a compact version of the
transaction item: paid state, type colour, date, description, category,
tags, entities, amount and account. The search endpoint returns that data
as JSON, and pre-selected options carry it in data-data so edit forms
render the same way.
2026-11-08 03:27:01 -03:00
Herculino Trotta 1213ffebeb feat(transactions:calculations): add deep_search param to return consolidated amounts for currencies without transactions / sort results by their final total 2025-05-12 20:43:47 -03:00
Herculino Trotta 9705441e2d feat: indicate what paid/project button means
Closes #122
2025-02-01 19:06:04 -03:00
Herculino Trotta 4c1c86adb8 fix(transactions:calculations:percentages): KeyError when calculating exchange 2024-12-24 11:59:27 -03:00
Herculino Trotta 1b2a77aaf3 feat(monthly-view): add percentage bar 2024-12-24 02:36:26 -03:00
Herculino Trotta b3896df466 fix: wrong calculations 2024-11-18 10:15:52 -03:00
Herculino Trotta 1544c6cca2 fix: wrong calculations 2024-11-18 10:08:54 -03:00
Herculino Trotta c9b4cd3408 fix: wrong calculations 2024-11-18 01:17:37 -03:00
Herculino Trotta d5e207fc9c feat: add group name to transaction sum by account 2024-11-17 02:00:54 -03:00
Herculino Trotta 3f7ed42acf feat: add function for summing transactions 2024-11-17 01:23:40 -03:00
Herculino Trotta bc3c3360d0 feat: improve transactions ordering 2024-11-10 20:45:05 -03:00
Herculino Trotta 8c628718ff feat: add default transaction ordering function 2024-10-28 00:56:54 -03:00
Herculino Trotta 3dde44b1cd changes 2024-10-09 00:31:21 -03:00