diff --git a/accounting/templates/accounting/ledger.html b/accounting/templates/accounting/ledger.html
index f49e087..f18d6b3 100644
--- a/accounting/templates/accounting/ledger.html
+++ b/accounting/templates/accounting/ledger.html
@@ -27,7 +27,7 @@ First written: 2020/7/16
{% load accounting %}
{% block settings %}
- {% blocktrans asvar title with account=current_account.title|title period=period.description context "Accounting|" %}Ledger for {{ account }} in {{ period }}{% endblocktrans %}
+ {% blocktrans asvar title with account=account.title|title period=period.description context "Accounting|" %}Ledger for {{ account }} in {{ period }}{% endblocktrans %}
{% setvar "title" title %}
{% setvar "use_period_chooser" True %}
{% static "accounting/css/report.css" as css %}
@@ -67,13 +67,13 @@ First written: 2020/7/16
{% endwith %}
diff --git a/accounting/views/reports.py b/accounting/views/reports.py
index 8162c0f..c2c31d0 100644
--- a/accounting/views/reports.py
+++ b/accounting/views/reports.py
@@ -150,7 +150,7 @@ def cash(request, account, period):
return render(request, "accounting/cash.html", {
"item_list": records,
"pagination": pagination,
- "current_account": account,
+ "account": account,
"period": period,
"reports": ReportUrl(cash=account, period=period),
"shortcut_accounts": [x for x in accounts
@@ -253,7 +253,7 @@ def cash_summary(request, account):
return render(request, "accounting/cash-summary.html", {
"item_list": pagination.items,
"pagination": pagination,
- "current_account": account,
+ "account": account,
"reports": ReportUrl(cash=account),
"shortcut_accounts": [x for x in accounts if
x.code in shortcut_accounts],
@@ -336,7 +336,7 @@ def ledger(request, account, period):
return render(request, "accounting/ledger.html", {
"item_list": records,
"pagination": pagination,
- "current_account": account,
+ "account": account,
"period": period,
"reports": ReportUrl(ledger=account, period=period),
"accounts": _ledger_accounts(),
@@ -404,7 +404,7 @@ def ledger_summary(request, account):
return render(request, "accounting/ledger-summary.html", {
"item_list": pagination.items,
"pagination": pagination,
- "current_account": account,
+ "account": account,
"reports": ReportUrl(ledger=account),
"accounts": _ledger_accounts(),
})