From ddd028736c494d29cefa30eb9db59372ce5add41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 5 Mar 2023 22:18:22 +0800 Subject: [PATCH] Revised the balance in the mobile view of the income and expenses. --- .../report/include/income-expenses-mobile-row.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/accounting/templates/accounting/report/include/income-expenses-mobile-row.html b/src/accounting/templates/accounting/report/include/income-expenses-mobile-row.html index 3aa3576..1b92d8a 100644 --- a/src/accounting/templates/accounting/report/include/income-expenses-mobile-row.html +++ b/src/accounting/templates/accounting/report/include/income-expenses-mobile-row.html @@ -42,5 +42,9 @@ First written: 2023/3/5 {% if item.expense is not none %} -{{ item.expense|accounting_format_amount }} {% endif %} - {{ item.balance|accounting_format_amount }} + {% if item.balance < 0 %} + {{ item.balance|accounting_format_amount }} + {% else %} + {{ item.balance|accounting_format_amount }} + {% endif %}