Revised the error message of the CurrentAccountExists and AccountNotCurrent validators.
This commit is contained in:
parent
b4d390c33a
commit
e0355b2af1
@ -40,7 +40,7 @@ class CurrentAccountExists:
|
|||||||
return
|
return
|
||||||
if Account.find_by_code(field.data) is None:
|
if Account.find_by_code(field.data) is None:
|
||||||
raise ValidationError(lazy_gettext(
|
raise ValidationError(lazy_gettext(
|
||||||
"The current account does not exist."))
|
"The account does not exist."))
|
||||||
|
|
||||||
|
|
||||||
class AccountNotCurrent:
|
class AccountNotCurrent:
|
||||||
@ -51,7 +51,7 @@ class AccountNotCurrent:
|
|||||||
return
|
return
|
||||||
if field.data[:2] not in {"11", "12", "21", "22"}:
|
if field.data[:2] not in {"11", "12", "21", "22"}:
|
||||||
raise ValidationError(lazy_gettext(
|
raise ValidationError(lazy_gettext(
|
||||||
"The current account does not exist."))
|
"This is not a current account."))
|
||||||
|
|
||||||
|
|
||||||
class NotStartPayableFromExpense:
|
class NotStartPayableFromExpense:
|
||||||
|
Loading…
Reference in New Issue
Block a user