.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user