Added CashAccountConverter and LedgerAccountConverter and applied them in the URL patterns of the accounting application.
This commit is contained in:
@ -101,7 +101,7 @@ First written: 2020/7/19
|
||||
<td class="amount">{{ item.debit|accounting_amount }}</td>
|
||||
<td class="amount">{{ item.credit|accounting_amount }}</td>
|
||||
<td class="actions">
|
||||
<a href="{% url "accounting:ledger" item.code period %}" class="btn btn-info" role="button">
|
||||
<a href="{% url "accounting:ledger" item period %}" class="btn btn-info" role="button">
|
||||
<i class="fas fa-eye"></i>
|
||||
<span class="d-none d-lg-inline">{% trans "View" context "Accounting|" as text %}{{ text|force_escape }}</span>
|
||||
</a>
|
||||
@ -133,7 +133,7 @@ First written: 2020/7/19
|
||||
<ul class="list-group d-lg-none trial-balance-list">
|
||||
{% for item in item_list %}
|
||||
<li class="list-group-item">
|
||||
<a class="list-group-item-action d-flex justify-content-between align-items-center" href="{% url "accounting:ledger" item.code period.spec %}">
|
||||
<a class="list-group-item-action d-flex justify-content-between align-items-center" href="{% url "accounting:ledger" item period.spec %}">
|
||||
{{ item.title }}
|
||||
<div>
|
||||
{% if item.debit is not None %}
|
||||
|
Reference in New Issue
Block a user