Refined to enable the selection of the 3351-001 Accumulated Profit or Loss account.

This commit is contained in:
2023-12-16 21:51:14 +08:00
parent 50d4526e0b
commit ece7481e9e
2 changed files with 0 additions and 6 deletions

View File

@ -71,7 +71,6 @@ class IsDebitAccount:
if field.data is None:
return
if re.match(r"^(?:[1235689]|7[5678])", field.data) \
and field.data != "3351-001" \
and not field.data.startswith("3353-"):
return
raise ValidationError(self.__message)
@ -92,7 +91,6 @@ class IsCreditAccount:
if field.data is None:
return
if re.match(r"^(?:[123489]|7[1234])", field.data) \
and field.data != "3351-001" \
and not field.data.startswith("3353-"):
return
raise ValidationError(self.__message)