field=models.ManyToManyField(blank=True,help_text='The youth leaders to which an allowance should be paid.',related_name='receives_allowance_for_statements',to='members.Member',verbose_name='Pay allowance to'),
),
migrations.AlterField(
model_name='statement',
name='subsidy_to',
field=models.ForeignKey(blank=True,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'),
{% blocktrans %}In total this is {{ total_per_yl }}€ times {{ staff_count }}, giving {{ total_staff }}€.{% endblocktrans %}
{% blocktrans %}In total this is {{ total_per_yl }}€ times {{ staff_count }}, giving {{ theoretical_total_staff }}€.{% endblocktrans %}
</p>
</p>
<h2>{% trans "Payment of subsidies and allowances" %}</h2>
{% if allowances_paid > 0 %}
<p>
<p>
{% blocktrans %}The allowance of {{ allowance_per_yl }}€ per person should be paid to:{% endblocktrans %}
{% blocktrans %}The allowance of {{ allowance_per_yl }}€ per person should be paid to:{% endblocktrans %}
<ul>
<table>
<th>
<td>{% trans "IBAN valid" %}</td>
</th>
{% for member in statement.allowance_to.all %}
{% for member in statement.allowance_to.all %}
<li>
<tr>
{{ member.name }}
<td>{{ member.name }}</td>
</li>
<td>{{ member.iban_valid|render_bool }}</td>
</tr>
{% endfor %}
{% endfor %}
</ul>
</table>
</p>
</p>
{% if allowances_paid <real_staff_count%}
<p>{% blocktrans %}Only {{ allowances_paid }} of the {{ real_staff_count }} youth leaders have requested the outpayment of their allowance.{% endblocktrans %}</p>
{% endif %}
{% else %}
<p>{% blocktrans %}No receivers of the allowance were provided. Allowance will not be used.{% endblocktrans %}</p>
{% endif %}
{% if statement.subsidy_to %}
<p>
<p>
{% blocktrans %}The subsidies for night and transportation costs of {{ total_subsidies }}€ should be paid to:{% endblocktrans %}
{% blocktrans %}The subsidies for night and transportation costs of {{ total_subsidies }}€ should be paid to:{% endblocktrans %}
@ -866,11 +866,6 @@ class StatementOnListForm(forms.ModelForm):
'allowance_to':_("This excursion only has up to %(approved_count)s approved youth leaders, but you listed %(entered_count)s.")%{'approved_count':str(excursion.approved_staff_count),
'allowance_to':_("This excursion only has up to %(approved_count)s approved youth leaders, but you listed %(entered_count)s.")%{'approved_count':str(excursion.approved_staff_count),
'allowance_to':_("This excursion has %(approved_count)s approved youth leaders, but you listed only %(entered_count)s.")%{'approved_count':str(excursion.approved_staff_count),
{% blocktrans %}The allowance of {{ allowance_per_yl }}€ per person is configured to be paid to:{% endblocktrans %}
{% blocktrans %}The allowance of {{ allowance_per_yl }}€ per person is configured to be paid to:{% endblocktrans %}
<table>
<table>
<th>
<th>
@ -99,6 +100,14 @@ cost plan!
{% endfor %}
{% endfor %}
</table>
</table>
</p>
</p>
{% if memberlist.statement.allowances_paid <memberlist.statement.real_staff_count%}
<p>{% blocktrans %}Only {{ allowances_paid }} of the {{ real_staff_count }} youth leaders have requested the outpayment of their allowance.{% endblocktrans %}</p>
{% endif %}
{% else %}
<p>{% blocktrans %}No receivers of the allowance were provided. Allowance will not be used.{% endblocktrans %}</p>
{% endif %}
{% if memberlist.statement.subsidy_to %}
<p>
<p>
{% blocktrans %}The subsidies for night and transportation costs of {{ total_subsidies }}€ is configured to be paid to:{% endblocktrans %}
{% blocktrans %}The subsidies for night and transportation costs of {{ total_subsidies }}€ is configured to be paid to:{% endblocktrans %}
<table>
<table>
@ -111,6 +120,10 @@ cost plan!
</tr>
</tr>
</table>
</table>
</p>
</p>
{% else %}
<p>{% blocktrans %}No receivers of the subsidies were provided. Subsidies will not be used.{% endblocktrans %}</p>
{% endif %}
{% if not memberlist.statement.allowance_to_valid %}
{% if not memberlist.statement.allowance_to_valid %}
<p>
<p>
{% blocktrans %}Warning: The configured recipients of the allowance don't match the regulations. This might be because the number of recipients is bigger then the number of admissable youth leaders for this excursion.{% endblocktrans %}
{% blocktrans %}Warning: The configured recipients of the allowance don't match the regulations. This might be because the number of recipients is bigger then the number of admissable youth leaders for this excursion.{% endblocktrans %}