From 5d4bf4361b623b891e2162235368dfbcc3695c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 22 Mar 2023 20:00:17 +0800 Subject: [PATCH] Revised the error messages of the NotStartPayableFromExpense and NotStartReceivableFromIncome validators. --- src/accounting/option/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/option/forms.py b/src/accounting/option/forms.py index e5697c5..624aa6b 100644 --- a/src/accounting/option/forms.py +++ b/src/accounting/option/forms.py @@ -82,7 +82,7 @@ class NotStartPayableFromExpense: account: Account | None = Account.find_by_code(field.data) if account is not None and account.is_need_offset: raise ValidationError(lazy_gettext( - "A payable line item cannot start from expense.")) + "You cannot select a payable account as expense.")) class NotStartReceivableFromIncome: @@ -95,7 +95,7 @@ class NotStartReceivableFromIncome: account: Account | None = Account.find_by_code(field.data) if account is not None and account.is_need_offset: raise ValidationError(lazy_gettext( - "A receivable line item cannot start from income.")) + "You cannot select a receivable account as income.")) class RecurringItemForm(FlaskForm):