mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-28 03:12:52 +01:00
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.
12 lines
483 B
HTML
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 %}
|