Simplified the logic to test the total row in the ledger and income and expenses.

This commit is contained in:
依瑪貓 2023-03-06 16:26:13 +08:00
parent 22bae7f766
commit e797cfeb8c
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ First written: 2023/3/5
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% if report.total_row is not none %} {% if report.total_row %}
<div class="accounting-report-table-footer"> <div class="accounting-report-table-footer">
<div class="accounting-report-table-row"> <div class="accounting-report-table-row">
<div>{{ A_("Total") }}</div> <div>{{ A_("Total") }}</div>

View File

@ -180,7 +180,7 @@ First written: 2023/3/5
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% if report.total_row is not none %} {% if report.total_row %}
<div class="accounting-report-table-footer"> <div class="accounting-report-table-footer">
<div class="accounting-report-table-row"> <div class="accounting-report-table-row">
<div>{{ A_("Total") }}</div> <div>{{ A_("Total") }}</div>