mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-22 08:32:03 +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.
22 lines
754 B
HTML
22 lines
754 B
HTML
{% extends 'extends/offcanvas.html' %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
|
|
{% block title %}{% translate 'Add quick transaction' %}{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="w-full">
|
|
{% if quick_transactions %}
|
|
<ul class="menu bg-base-100 w-full menu-lg">
|
|
{% for qt in quick_transactions %}
|
|
<li><a hx-get="{% url 'quick_transaction_add_as_transaction' quick_transaction_id=qt.id %}"
|
|
class="menu-item {% if qt.type == 'EX' %}text-error{% elif qt.type == 'TR' %}text-info{% else %}text-success{% endif %}">{{ qt.name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<c-msg.empty title="{% translate "Nothing to see here..." %}" remove-padding></c-msg.empty>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endblock %}
|