This commit is contained in:
2022-04-20 15:11:37 +02:00
parent 2c5a40eb28
commit 90952d883e
11 changed files with 348 additions and 85 deletions
+21 -1
View File
@@ -28,7 +28,7 @@
</tr>
</thead>
<tbody>
{% for tax in taxes %}
{% for key,tax in taxes %}
{% if tax.country is defined %}
{% set colspan = tax|length %}
{% if tax.income > 0 %}
@@ -62,6 +62,12 @@
{% endfor %}
{% endif %}
{% endif %}
{% elseif key == "sum" %}
<tr class="">
<td colspan="{{ colspan-2 }}">Summary:</td>
<td>{{ tax.profit|price("PLN",0) }}</td>
<td>{{ tax.tax|price("PLN",0) }}</td>
</tr>
{% else %}
<tr class="">
<td colspan="{{ colspan-1 }}">Summary:</td>
@@ -72,6 +78,20 @@
</tbody>
</table>
{% endif %}
{% if error %}
<table class="table table-dark table-striped">
<tr>
{% for curr,val in error %}
<td>{{ curr }}</td>
{% endfor %}
</tr>
<tr>
{% for curr,val in error %}
<td>{{ val }}</td>
{% endfor %}
</tr>
</table>
{% endif %}
</div>
</div>