Compare commits

..

No commits in common. "50d4526e0b5a1f454275bc73fa839e6058985cf0" and "dcc9626b23c02559e0bf3bf6cb3a53aa72c7c291" have entirely different histories.

3 changed files with 3 additions and 14 deletions

View File

@ -2,17 +2,6 @@ Change Log
==========
Version 1.5.10
--------------
Released 2023/11/28
Bug fix.
* Fixed the form validator to enable the selection of Accumulated Profit or
Loss accounts other than 3351-001.
Version 1.5.9
-------------

View File

@ -24,7 +24,7 @@ from flask_sqlalchemy import SQLAlchemy
from accounting.utils.user import UserUtilityInterface
VERSION: str = "1.5.10"
VERSION: str = "1.5.9"
"""The package version."""
db: SQLAlchemy = SQLAlchemy()
"""The database instance."""

View File

@ -71,7 +71,7 @@ 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("3351-") \
and not field.data.startswith("3353-"):
return
raise ValidationError(self.__message)
@ -92,7 +92,7 @@ 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("3351-") \
and not field.data.startswith("3353-"):
return
raise ValidationError(self.__message)