finance/statement: add selection fields for allowance and subsidies
In the statement tab on excursions, add two new fields to select to which youth leaders the allowance and subsidies should be paid. The fields are checked for validity based on the number of approved youth leaders. Also add a new field on excursions to allow for additional approved youth leaders. The new fields are not yet used in the statement confirmation process.pull/103/head
parent
ce466671f2
commit
8b932461b7
@ -0,0 +1,26 @@
|
|||||||
|
# Generated by Django 4.0.1 on 2025-01-18 19:08
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('members', '0032_member_upload_registration_form_key'),
|
||||||
|
('members', '0033_freizeit_approved_extra_youth_leader_count'),
|
||||||
|
('finance', '0005_alter_bill_proof'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='statement',
|
||||||
|
name='allowance_to',
|
||||||
|
field=models.ManyToManyField(help_text='The youth leaders to which an allowance should be paid. The count must match the number of permitted youth leaders.', related_name='receives_allowance_for_statements', to='members.Member', verbose_name='Pay allowance to'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='statement',
|
||||||
|
name='subsidy_to',
|
||||||
|
field=models.ForeignKey(help_text='The person that should receive the subsidy for night and travel costs. Typically the person who paid for them.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='receives_subsidy_for_statements', to='members.member', verbose_name='Pay subsidy to'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.0.1 on 2025-01-18 18:27
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('members', '0032_member_upload_registration_form_key'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='freizeit',
|
||||||
|
name='approved_extra_youth_leader_count',
|
||||||
|
field=models.PositiveIntegerField(default=0, help_text='The number of approved youth leaders per excursion is determined by the number of participants. In special circumstances, e.g. in case of a technically demanding excursion, more youth leaders may be approved.', verbose_name='Number of additional approved youth leaders'),
|
||||||
|
),
|
||||||
|
]
|
||||||
Loading…
Reference in New Issue