From e797cfeb8c1431c45924145750440bb63ca15082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 6 Mar 2023 16:26:13 +0800 Subject: [PATCH] Simplified the logic to test the total row in the ledger and income and expenses. --- src/accounting/templates/accounting/report/income-expenses.html | 2 +- src/accounting/templates/accounting/report/ledger.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/templates/accounting/report/income-expenses.html b/src/accounting/templates/accounting/report/income-expenses.html index 5436088..1e3ea75 100644 --- a/src/accounting/templates/accounting/report/income-expenses.html +++ b/src/accounting/templates/accounting/report/income-expenses.html @@ -183,7 +183,7 @@ First written: 2023/3/5 {% endif %} {% endfor %} - {% if report.total_row is not none %} + {% if report.total_row %}