From e00cf7656bcf96a55578d3623e8294aefcf8034c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 14 Jul 2020 21:27:30 +0800 Subject: [PATCH] Added the subject selector for the cash account in the accounting application. --- accounting/templates/accounting/cash.html | 18 ++++++++- accounting/views/__init__.py | 47 ++++++++++++++++------- 2 files changed, 50 insertions(+), 15 deletions(-) diff --git a/accounting/templates/accounting/cash.html b/accounting/templates/accounting/cash.html index c1aba9f..b786059 100644 --- a/accounting/templates/accounting/cash.html +++ b/accounting/templates/accounting/cash.html @@ -25,7 +25,7 @@ First written: 2020/7/1 {% load accounting %} {% block settings %} - {% blocktrans asvar title with subject=subject.title_zhtw period=period.description context "Accounting|" %}Cash Account for {{ subject }} in {{ period }}{% endblocktrans %} + {% blocktrans asvar title with subject=current_subject.title_zhtw period=period.description context "Accounting|" %}Cash Account for {{ subject }} in {{ period }}{% endblocktrans %} {% setvar "title" title %} {% setvar "use_period_chooser" True %} {% endblock %} @@ -66,6 +66,22 @@ First written: 2020/7/1 {% trans "Cash Account" context "Accounting|" as current_report_title %} {% include "accounting/include/report-chooser.html" %} {% endwith %} +
+ + +