Moved getting the ReportUrl utility from the views to the report chooser template, to simplify the view in the accounting application.

This commit is contained in:
依瑪貓
2020-08-07 10:25:29 +08:00
parent 45ed53b085
commit 4f02dd88da
12 changed files with 25 additions and 30 deletions

View File

@ -53,7 +53,7 @@ First written: 2020/7/19
</a>
</div>
</div>
{% with current_report_icon="fas fa-balance-scale-right" current_report_title=_("Trial Balance") %}
{% with current_report_icon="fas fa-balance-scale-right" current_report_title=_("Trial Balance") period=period %}
{% include "accounting/include/report-chooser.html" %}
{% endwith %}
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#period-modal">