From f33a1631fae601fbf06c022b0a9b298e2b06ed5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 17 Jul 2020 07:18:58 +0800 Subject: [PATCH] Revised the comments in the view of the accounting application. --- accounting/views/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/accounting/views/__init__.py b/accounting/views/__init__.py index f4eb474..e9af170 100644 --- a/accounting/views/__init__.py +++ b/accounting/views/__init__.py @@ -145,7 +145,7 @@ def cash(request, subject_code, period_spec): current_subject = subject if current_subject is None: raise Http404() - # The SQL query + # The accounting records if current_subject.code == "0": select_records = """SELECT r.* FROM accounting_records AS r @@ -285,7 +285,7 @@ def cash_summary(request, subject_code): current_subject = subject if current_subject is None: raise Http404() - # The SQL query + # The accounting records if connection.vendor == "postgresql": month_definition = "CAST(DATE_TRUNC('month', t.date) AS date)" elif connection.vendor == "sqlite": @@ -405,7 +405,7 @@ def ledger(request, subject_code, period_spec): current_subject = subject if current_subject is None: raise Http404() - # The SQL query + # The accounting records select_records = """SELECT r.* FROM accounting_records AS r INNER JOIN accounting_transactions AS t ON r.transaction_sn = t.sn @@ -470,7 +470,7 @@ def ledger_summary(request, subject_code): current_subject = subject if current_subject is None: raise Http404() - # The SQL query + # The accounting records if connection.vendor == "postgresql": month_definition = "CAST(DATE_TRUNC('month', t.date) AS date)" elif connection.vendor == "sqlite":