Applied the title filter to the account titles in the trial balance in the accounting application.

This commit is contained in:
依瑪貓 2020-08-02 18:47:16 +08:00
parent 65a950a28a
commit bcc394128e

View File

@ -94,7 +94,7 @@ First written: 2020/7/19
<tbody> <tbody>
{% for item in item_list %} {% for item in item_list %}
<tr> <tr>
<td>{{ item.title }}</td> <td>{{ item.title|title }}</td>
<td class="amount">{{ item.debit|accounting_amount }}</td> <td class="amount">{{ item.debit|accounting_amount }}</td>
<td class="amount">{{ item.credit|accounting_amount }}</td> <td class="amount">{{ item.credit|accounting_amount }}</td>
<td class="actions"> <td class="actions">
@ -131,7 +131,7 @@ First written: 2020/7/19
{% for item in item_list %} {% for item in item_list %}
<li class="list-group-item"> <li class="list-group-item">
<a class="list-group-item-action d-flex justify-content-between align-items-center" href="{% url "accounting:ledger" item period %}"> <a class="list-group-item-action d-flex justify-content-between align-items-center" href="{% url "accounting:ledger" item period %}">
{{ item.title }} {{ item.title|title }}
<div> <div>
{% if item.debit is not None %} {% if item.debit is not None %}
<span class="badge badge-success badge-pill"> <span class="badge badge-success badge-pill">