From 50dd6078c733d231a085fb8dfbeb54d9095f843e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 20 Mar 2023 22:43:53 +0800 Subject: [PATCH] Replaced "Need offset" with "Needs Offset" as the text of the badge. --- src/accounting/account/queries.py | 2 +- src/accounting/report/reports/search.py | 2 +- src/accounting/templates/accounting/account/detail.html | 2 +- src/accounting/templates/accounting/account/list.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/account/queries.py b/src/accounting/account/queries.py index 6c7683b..7e86529 100644 --- a/src/accounting/account/queries.py +++ b/src/accounting/account/queries.py @@ -47,7 +47,7 @@ def get_account_query() -> list[Account]: Account.title_l10n.contains(k), code.contains(k), Account.id.in_(l10n_matches)] - if k in gettext("Need offset"): + if k in gettext("Needs Offset"): sub_conditions.append(Account.is_need_offset) conditions.append(sa.or_(*sub_conditions)) diff --git a/src/accounting/report/reports/search.py b/src/accounting/report/reports/search.py index 7427e5c..26ec84c 100644 --- a/src/accounting/report/reports/search.py +++ b/src/accounting/report/reports/search.py @@ -98,7 +98,7 @@ class LineItemCollector: Account.title_l10n.contains(k), code.contains(k), Account.id.in_(select_l10n)] - if k in gettext("Need offset"): + if k in gettext("Needs Offset"): conditions.append(Account.is_need_offset) return sa.select(Account.id).filter(sa.or_(*conditions)) diff --git a/src/accounting/templates/accounting/account/detail.html b/src/accounting/templates/accounting/account/detail.html index 06f3538..ec7057d 100644 --- a/src/accounting/templates/accounting/account/detail.html +++ b/src/accounting/templates/accounting/account/detail.html @@ -87,7 +87,7 @@ First written: 2023/1/31
{{ obj.code }}
{% if obj.is_need_offset %}
- {{ A_("Need offset") }} + {{ A_("Needs Offset") }}
{% endif %}
diff --git a/src/accounting/templates/accounting/account/list.html b/src/accounting/templates/accounting/account/list.html index 29d165e..07f36a7 100644 --- a/src/accounting/templates/accounting/account/list.html +++ b/src/accounting/templates/accounting/account/list.html @@ -59,7 +59,7 @@ First written: 2023/1/30 {{ item }} {% if item.is_need_offset %} - {{ A_("Need offset") }} + {{ A_("Needs Offset") }} {% endif %} {% endfor %}