Refund operations now show correctly in invoices

This commit is contained in:
Pinga 2025-07-14 14:34:38 +03:00
parent 04b4e84741
commit 53516e01cb
5 changed files with 104 additions and 54 deletions

View file

@ -85,7 +85,12 @@
<tr>
<td class="text-center">{{ loop.index }}</td>
<td>
<p class="strong mb-1">{{ item.command }} {{ item.domain_name }}</p>
<p class="strong mb-1">
{{ item.command }} {{ item.domain_name }}
{% if item.type == 'credit' and item.reason is defined %}
<br><small class="text-muted">{{ item.reason }}</small>
{% endif %}
</p>
</td>
<td class="text-end">{{ item.amount }}</td>
</tr>