Removed an unnecessary if-condition in the template of the cash account.

This commit is contained in:
依瑪貓 2020-07-15 19:07:22 +08:00
parent 14ed892534
commit 77da7862c6

View File

@ -118,8 +118,8 @@ First written: 2020/7/1
{{ text|force_escape }} {{ text|force_escape }}
</span> </span>
{% endif %}</td> {% endif %}</td>
<td class="amount {% if record.credit_amount < 0 %} text-danger {% endif %}">{{ record.credit_amount|accounting_amount }}</td> <td class="amount">{{ record.credit_amount|accounting_amount }}</td>
<td class="amount {% if record.debit_amount < 0 %} text-danger {% endif %}">{{ record.debit_amount|accounting_amount }}</td> <td class="amount">{{ record.debit_amount|accounting_amount }}</td>
<td class="amount {% if record.balance < 0 %} text-danger {% endif %}">{{ record.balance|accounting_amount }}</td> <td class="amount {% if record.balance < 0 %} text-danger {% endif %}">{{ record.balance|accounting_amount }}</td>
<td class="actions"> <td class="actions">
{% if record.sn is not None %} {% if record.sn is not None %}