Replaced the "transaction" property with the "url" property in the ReportEntry model of the income and expenses log, so that the report entry does not need to keep the transaction object.
This commit is contained in:
1 parent
d19d23fe37
commit
74eee034d0
2 files changed
+6
-5
No files matched your search
@@ -80,7 +80,7 @@ First written: 2023/3/5
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% for entry in report.entries %}
|
||||
<a class="accounting-report-table-row" href="{{ url_for("accounting.transaction.detail", txn=entry.transaction)|accounting_append_next }}">
|
||||
<a class="accounting-report-table-row" href="{{ entry.url|accounting_append_next }}">
|
||||
{% include "accounting/report/include/income-expenses-row-desktop.html" %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
@@ -108,7 +108,7 @@ First written: 2023/3/5
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% for entry in report.entries %}
|
||||
<a class="list-group-item list-group-item-action d-flex justify-content-between" href="{{ url_for("accounting.transaction.detail", txn=entry.transaction)|accounting_append_next }}">
|
||||
<a class="list-group-item list-group-item-action d-flex justify-content-between" href="{{ entry.url|accounting_append_next }}">
|
||||
{% include "accounting/report/include/income-expenses-row-mobile.html" %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
Reference in new issue
Block a user