Revised the balance in the mobile view of the income and expenses.
This commit is contained in:
parent
e1d35a64da
commit
ddd028736c
@ -42,5 +42,9 @@ First written: 2023/3/5
|
|||||||
{% if item.expense is not none %}
|
{% if item.expense is not none %}
|
||||||
<span class="badge rounded-pill bg-warning">-{{ item.expense|accounting_format_amount }}</span>
|
<span class="badge rounded-pill bg-warning">-{{ item.expense|accounting_format_amount }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if item.balance < 0 %}
|
||||||
|
<span class="badge rounded-pill bg-danger">{{ item.balance|accounting_format_amount }}</span>
|
||||||
|
{% else %}
|
||||||
<span class="badge rounded-pill bg-primary">{{ item.balance|accounting_format_amount }}</span>
|
<span class="badge rounded-pill bg-primary">{{ item.balance|accounting_format_amount }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user