feat(finance/excursion): added ljp payout functionality and tax

pull/149/head
mariusrklein 8 months ago
parent 4b86d5a5c6
commit cdf91cc69d

@ -268,7 +268,6 @@ class Statement(CommonModel):
ref = _("LJP-Contribution %(excu)s") % {'excu': self.excursion.name} ref = _("LJP-Contribution %(excu)s") % {'excu': self.excursion.name}
Transaction(statement=self, member=self.ljp_to, amount=self.paid_ljp_contributions, confirmed=False, reference=ref).save() Transaction(statement=self, member=self.ljp_to, amount=self.paid_ljp_contributions, confirmed=False, reference=ref).save()
return True return True
def reduce_transactions(self): def reduce_transactions(self):

@ -136,29 +136,16 @@ cost plan!
</p> </p>
{% endif %} {% endif %}
{% if memberlist.statement.ljp_to %}
<h3>{% trans "LJP contributions" %}</h3> <h3>{% trans "LJP contributions" %}</h3>
<p> {% if memberlist.statement.ljp_to %}
{% blocktrans %}By submitting the given seminar report, you will receive LJP contributions.
You have documented interventions worth of {{ total_seminar_days }} seminar days for {{ participant_count }} participants.
This results in a total contribution of {{ ljp_contributions }}€.
To receive them, you need to submit the LJP-Proposal within 3 weeks after your excursion and have it approved by the finance office.{% endblocktrans %}
</p>
<p> <p>
{% blocktrans %}The LJP contributions are configured to be paid to:{% endblocktrans %} {% blocktrans %}By submitting the given seminar report, you will receive LJP contributions. You have
<table> documented interventions worth of {{ total_seminar_days }} seminar days for {{ participant_count }} participants.
<th> This results in a total contribution of {{ ljp_contributions }}€. To receive them, you need to
<td>{% trans "IBAN valid" %}</td> submit the LJP-Proposal within 3 weeks after your excursion and have it approved by the finance office. {% endblocktrans %}
</th> </p>
<tr>
<td>{{ memberlist.statement.ljp_to.name }}</td>
<td>{{ memberlist.statement.ljp_to.iban_valid|render_bool }}</td>
</tr>
</table>
</p>
{% else %} {% else %}
<p> <p>

Loading…
Cancel
Save