Duplicating a transaction sent transaction_created for the transaction
being duplicated instead of the new copy. Rules that run on creation,
and auto-tagging, were applied to the original a second time: an edit
action rewrote the original's fields while the copy kept them unchanged.
Duplicating a transfer ran nothing on its new "to" side, and bulk
duplicate never ran rules at all.
Both views now send transaction_created for each copy once it's saved,
and for both new sides of a duplicated transfer, the way the transfer
form and quick transactions already do. clone_transaction keeps
returning the copy without side effects, so it can still be used where
no user is signed in.
Export and restore left split events out, so moving to a new instance or
restoring a backup lost every event, its people, expenses, payments and
the links to the members' own transactions.
- Export has a "Split Expenses" option, on by default. It writes
split_events, split_participants, split_expenses, split_expense_shares
and split_payments. Like the bank sync option, it warns that the file
carries something sensitive: the events' share links, kept so the links
people already have keep working after a restore.
- split_transaction_links goes along only when transactions are exported
too, the same way sub-transactions follow their parents, so a restore
never points at transactions missing from the backup.
- Restore reads the new files after users, currencies and transactions,
in dependency order. Everything is matched by id, except the event's
currency (by name, like DCA strategies) and the linked transaction,
which is looked up across every user: restore runs as the admin, who
can't see the other members' transactions.
- Guests' usernames and password hashes are restored, so they can still
sign in through the share link.
- Attachments stay out, as transaction attachments do: they're files,
not rows.
Adding a split expense, payment or planned settlement to "my transactions"
with "Create new WYGIWYH transaction" saved the transaction without sending
transaction_created. Rules and auto-tagging never ran on it, unlike
transactions created from the form, the API, imports, quick transactions
and bank sync.
create_and_link_transaction now sends transaction_created once the
transaction, its tags and entities, and the split link are committed, the
same way quick transactions do. Linking an existing transaction still
doesn't trigger rules, as with bank sync matching.
Django's ' escaping is decoded by the browser before hyperscript parses
a _="..." attribute, so a quote in a currency or account name closed the
string and the rest ran as hyperscript. Names now live in plain data-*
attributes and are read with @data-*. Spaces in currency prefixes and
suffixes are kept.
Refs GHSA-fh52-f8r4-hv6g
The old wording ("sharing grants read access only") read as if a shared
account's transactions were read-only, which keeps producing BOLA reports
against intended behaviour.
Rule selection went through SharedObjectManager, which includes every
user's public rules, so a public rule ran against other users'
transactions. Public rules stay readable by everyone; shared rules keep
running for the users they are shared with.
Fixes GHSA-hjfv-p3g6-mwch
Currency, account and category names were rendered into inline <script>
blocks with |safe, so a name containing </script> or a quote ran as script
for every user whose net worth or insights page included it.
Fixes GHSA-fh52-f8r4-hv6g
Add /api/splits/ endpoints for events, participants, expenses and payments,
plus an event summary (balances and settle-up) and leave action. They share
the web UI's access rules and share calculation. MCP reaches them through
search_api/call_api, and its instructions now point to them.
Track expenses shared with other people (trips, flats, dinners) and settle
up with the fewest payments.
- Events with WYGIWYH users and people without an account, who join through
a share link and pick a password on first sign-in
- Equal, exact, percentage and share-weight splits that always add up
- Balances, a minimal settle-up plan and an activity feed showing what each
item means for you
- Link items to your own transactions; recording a payment marks planned
ones as paid
- Share menu: printable PDF report and PNG images of the summary, settle-up
and balances (adds modern-screenshot)
- Only the two people involved or the organizer can record a payment;
members can leave events they don't organize
Saved filter presets have to be picked from the menu every time a page
opens, so a view someone always wants, like hiding projected
transactions (#521), takes a few clicks on every visit or a bookmarked
URL.
A preset can now be set as the default from the presets menu, with the
star next to its name. All transactions and the Monthly overview then
open with it applied, relative dates moved to today, whenever their
URL has no filters of its own:
- `FilterPreset.is_default`, with a constraint allowing one default per
user. Starring another preset moves the default to it, and starring
the default again turns it off.
- Filters in the URL, like `/transactions/?is_paid=1`, take precedence
over the default, and Clear still empties the filter for the visit.
- The star stays visible on the default preset and shows on hover for
the others, like the delete button.
- Building a filter from a preset moves into
`TransactionsFilter.from_preset`, shared by applying a preset and
opening a page with the default one.
The export and restore forms now sit on the Export and Restore page
instead of an offcanvas. Exporting shows a progress line and a toast
when the download starts; restoring splits ZIP and CSV uploads into
tabs and shows errors in the form.
- An empty export warns instead of downloading the message as a file
- Export errors show a message instead of a stuck spinner
- The download link is kept long enough for Safari to save the file
- Non-superusers get a 403 instead of a redirect loop with the login
- The asset classes CSV can be uploaded on its own
- Drop the export form's unknown investment_classes layout field