Files
WYGIWYH/app/templates/transactions/fragments/transfer.html
T
Herculino Trotta 3716b9b0e3 feat(transactions): link transfer sides and show them as a single item
Transfers are still two transactions, now linked to each other:
- shown as one item in lists, with each side's amount, account,
  category and tags ("Combine transfers" user setting, on by default)
- date, reference date, paid and mute stay in sync between sides
- edit opens the transfer form; delete, restore, duplicate and bulk
  actions act on both sides
- transfers made by the transfer form now trigger rules for each side

Recurring and quick transactions gain a Transfer type, with a "To
account" and optional "To amount", generating linked transfers. A
transfer can be converted into either.

Existing transfers are left as they are, since there is no reliable
way to pair them.
2026-11-02 01:14:46 -03:00

12 lines
483 B
HTML

{% extends 'extends/offcanvas.html' %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{% if transaction %}{% translate 'Edit transfer' %}{% else %}{% translate 'New transfer' %}{% endif %}{% endblock %}
{% block body %}
<form hx-post="{% if transaction %}{% url 'transaction_transfer_edit' transaction_id=transaction.id %}{% else %}{% url 'transactions_transfer' %}{% endif %}" hx-target="#generic-offcanvas" novalidate>
{% crispy form %}
</form>
{% endblock %}