From f9a9a99246bc4ea3686e042d6a2e313064bbcc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 21 Jul 2020 22:05:39 +0800 Subject: [PATCH] Added PeriodConverter to convert a period specification to a period, and applied it in the URL patterns. --- accounting/templates/accounting/cash.html | 4 +- .../accounting/income-statement.html | 4 +- accounting/templates/accounting/ledger.html | 2 +- .../templates/accounting/trial-balance.html | 2 +- accounting/urls.py | 53 +++++++++++++++-- accounting/utils.py | 12 ++-- accounting/views/reports.py | 58 +++++-------------- mia_core/period.py | 4 ++ mia_core/templatetags/mia_core.py | 2 +- 9 files changed, 79 insertions(+), 62 deletions(-) diff --git a/accounting/templates/accounting/cash.html b/accounting/templates/accounting/cash.html index cbefa9f..d7efe21 100644 --- a/accounting/templates/accounting/cash.html +++ b/accounting/templates/accounting/cash.html @@ -73,13 +73,13 @@ First written: 2020/7/1