Compare commits
2 Commits
dcc9626b23
...
50d4526e0b
Author | SHA1 | Date | |
---|---|---|---|
50d4526e0b | |||
3f0a0b4227 |
@ -2,6 +2,17 @@ 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
|
Version 1.5.9
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ from flask_sqlalchemy import SQLAlchemy
|
|||||||
|
|
||||||
from accounting.utils.user import UserUtilityInterface
|
from accounting.utils.user import UserUtilityInterface
|
||||||
|
|
||||||
VERSION: str = "1.5.9"
|
VERSION: str = "1.5.10"
|
||||||
"""The package version."""
|
"""The package version."""
|
||||||
db: SQLAlchemy = SQLAlchemy()
|
db: SQLAlchemy = SQLAlchemy()
|
||||||
"""The database instance."""
|
"""The database instance."""
|
||||||
|
@ -71,7 +71,7 @@ class IsDebitAccount:
|
|||||||
if field.data is None:
|
if field.data is None:
|
||||||
return
|
return
|
||||||
if re.match(r"^(?:[1235689]|7[5678])", field.data) \
|
if re.match(r"^(?:[1235689]|7[5678])", field.data) \
|
||||||
and not field.data.startswith("3351-") \
|
and field.data != "3351-001" \
|
||||||
and not field.data.startswith("3353-"):
|
and not field.data.startswith("3353-"):
|
||||||
return
|
return
|
||||||
raise ValidationError(self.__message)
|
raise ValidationError(self.__message)
|
||||||
@ -92,7 +92,7 @@ class IsCreditAccount:
|
|||||||
if field.data is None:
|
if field.data is None:
|
||||||
return
|
return
|
||||||
if re.match(r"^(?:[123489]|7[1234])", field.data) \
|
if re.match(r"^(?:[123489]|7[1234])", field.data) \
|
||||||
and not field.data.startswith("3351-") \
|
and field.data != "3351-001" \
|
||||||
and not field.data.startswith("3353-"):
|
and not field.data.startswith("3353-"):
|
||||||
return
|
return
|
||||||
raise ValidationError(self.__message)
|
raise ValidationError(self.__message)
|
||||||
|
Loading…
Reference in New Issue
Block a user