Fixed and replaced the IsDebitAccount validator with the IsCreditAccount validator in the account_code field of the RecurringIncomeForm form.

This commit is contained in:
依瑪貓 2023-03-22 19:39:02 +08:00
parent 8f477dd6f1
commit a4644ede5f

View File

@ -166,7 +166,7 @@ class RecurringIncomeForm(RecurringItemForm):
account_code = StringField( account_code = StringField(
filters=[strip_text], filters=[strip_text],
validators=[AccountExists(), validators=[AccountExists(),
IsDebitAccount(), IsCreditAccount(),
NotStartReceivableFromCredit()]) NotStartReceivableFromCredit()])
"""The account code.""" """The account code."""
description_template = StringField( description_template = StringField(