From a4644ede5f5367f1c2bad5a3f943131eec25028e 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 19:39:02 +0800 Subject: [PATCH] Fixed and replaced the IsDebitAccount validator with the IsCreditAccount validator in the account_code field of the RecurringIncomeForm form. --- src/accounting/option/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/option/forms.py b/src/accounting/option/forms.py index b762cda..81e87c8 100644 --- a/src/accounting/option/forms.py +++ b/src/accounting/option/forms.py @@ -166,7 +166,7 @@ class RecurringIncomeForm(RecurringItemForm): account_code = StringField( filters=[strip_text], validators=[AccountExists(), - IsDebitAccount(), + IsCreditAccount(), NotStartReceivableFromCredit()]) """The account code.""" description_template = StringField(