Withdraw to deduct

* refactors Models and attributes
This commit is contained in:
mipel
2021-08-30 11:34:35 +02:00
parent cd5fb9cad6
commit d569be80b3
5 changed files with 14 additions and 14 deletions

View File

@@ -4,7 +4,7 @@
<div class="row">
<div class="col-sm-6">
<h5>
<span class="badge badge-light">{{intervention.withdraws.count}}</span>
<span class="badge badge-light">{{intervention.deductions.count}}</span>
{% trans 'Eco Account Deductions' %}
</h5>
</div>
@@ -39,7 +39,7 @@
</tr>
</thead>
<tbody>
{% for deduction in intervention.withdraws.all %}
{% for deduction in intervention.deductions.all %}
<tr {% if deduction.account.deleted %}class="align-middle alert-danger" title="{% trans 'Eco-account deleted! Deduction invalid!' %}" {% elif not deduction.account.recorded %}class="align-middle alert-danger" title="{% trans 'Eco-account not recorded! Deduction invalid!' %}" {% endif %}>
<td class="align-middle">
<a href="{% url 'compensation:acc-open' deduction.account.id %}">