mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-12-03 05:34:41 +01:00
Adds a Sub-transactions field to edit actions and update-or-create
actions. Expressions get a sub_transactions variable and return a list of
{name, amount}; an empty list removes the parts. Rules skip transfers, and
setting the amount of a split transaction is skipped.
24 lines
1.0 KiB
Python
24 lines
1.0 KiB
Python
# Generated by Django 5.2.17 on 2026-11-14 03:08
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('rules', '0018_transactionrule_order'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='updateorcreatetransactionruleaction',
|
|
name='set_sub_transactions',
|
|
field=models.TextField(blank=True, verbose_name='Sub-transactions'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='transactionruleaction',
|
|
name='field',
|
|
field=models.CharField(choices=[('account', 'Account'), ('type', 'Type'), ('is_paid', 'Paid'), ('date', 'Date'), ('reference_date', 'Reference Date'), ('mute', 'Mute'), ('amount', 'Amount'), ('sub_transactions', 'Sub-transactions'), ('description', 'Description'), ('notes', 'Notes'), ('category', 'Category'), ('tags', 'Tags'), ('entities', 'Entities'), ('internal_nome', 'Internal Note'), ('internal_id', 'Internal ID')], max_length=50, verbose_name='Field'),
|
|
),
|
|
]
|