add purchace limitations system for rancher - add incentive plans to rancher entries data

This commit is contained in:
2025-08-26 12:18:10 +03:30
parent b5dfcebafe
commit c0b6b8ddca
12 changed files with 142 additions and 14 deletions

View File

@@ -9,3 +9,11 @@ class TokenBlackListedException(APIException):
status_code = status.HTTP_401_UNAUTHORIZED
default_detail = _('unauthorized')
default_code = 'unauthorized'
class OrganizationBankAccountException(APIException):
""" if organization does not have bank account """
status_code = status.HTTP_403_FORBIDDEN
default_detail = "برای این سازمان حساب بانکی تعریف نشده است, ابتدا حساب بانکی تعریف کنید" # noqa
default_code = "برای این سازمان حساب بانکی تعریف نشده است" # noqa