Fixed the error from the month chooser in the period chooser when the current period has no start as the default month.

This commit is contained in:
依瑪貓 2023-03-09 12:15:37 +08:00
parent 34af52e3c3
commit f0187434d2

View File

@ -67,7 +67,7 @@ First written: 2023/3/4
{% endif %}
</div>
{% if report.period_chooser.has_data %}
<div id="accounting-period-chooser-month-chooser" class="mt-3" data-start="{{ report.period_chooser.data_start }}" data-default="{{ report.period.start }}"></div>
<div id="accounting-period-chooser-month-chooser" class="mt-3" data-start="{{ report.period_chooser.data_start }}" data-default="{{ report.period.start|accounting_default(report.period_chooser.data_start) }}"></div>
{% endif %}
</div>