organization limit for quota - get org childs

This commit is contained in:
2025-07-16 12:21:29 +03:30
parent a70d451ca1
commit a6b29ad28d
47 changed files with 375 additions and 11 deletions

View File

@@ -24,3 +24,14 @@ class QuotaExpiredTimeException(APIException):
status_code = status.HTTP_400_BAD_REQUEST
default_detail = "زمان مجوز این سهمیه به پایان رسیده است" # noqa
default_code = 'error'
class QuotaLimitByOrganizationException(APIException):
"""
if limitation of quota by organization is true,
distribution should be done in organizations limits
"""
status_code = status.HTTP_400_BAD_REQUEST
default_detail = "سازمان انتخاب شده در بین سامان های انتخاب شده برای توزیع سهمیه وجود ندارد" # noqa
default_code = 'error'