mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-29 20:02:51 +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.
20 lines
576 B
Python
20 lines
576 B
Python
# Generated by Django 5.2.17 on 2026-11-01 04:40
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('transactions', '0050_filterpreset'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='transaction',
|
|
name='linked_transaction',
|
|
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='transactions.transaction', verbose_name='Linked Transaction'),
|
|
),
|
|
]
|