rancher check unique - pos free products check unique - 500 error handling
This commit is contained in:
@@ -35,3 +35,13 @@ class QuotaLimitByOrganizationException(APIException):
|
||||
status_code = status.HTTP_400_BAD_REQUEST
|
||||
default_detail = "سازمان انتخاب شده در بین سامان های انتخاب شده برای توزیع سهمیه وجود ندارد" # noqa
|
||||
default_code = 'error'
|
||||
|
||||
|
||||
class FreePOSProductUniqueCheck(APIException):
|
||||
"""
|
||||
raise exception for free pos products to be unique
|
||||
"""
|
||||
|
||||
status_code = status.HTTP_403_FORBIDDEN
|
||||
default_detail = "محصول مورد نظر برای این دستگاه از قبل ثبت شده است" # noqa
|
||||
default_code = 'error'
|
||||
|
||||
Reference in New Issue
Block a user