free sale of inventory entry system deployment - add dhi state to rancher

This commit is contained in:
2025-09-20 12:41:24 +03:30
parent ce6e468b13
commit e8f4c77e9f
12 changed files with 390 additions and 158 deletions

View File

@@ -10,6 +10,14 @@ class QuotaWeightException(APIException):
default_code = 'error'
class DistributionWeightException(APIException):
""" if sale transaction weight is more than distribution weight """
status_code = status.HTTP_400_BAD_REQUEST
default_detail = 'مقدار وزن وارد شده بیشتر از وزن سهمیه توزیع شده میباشد.' # noqa
default_code = 'error'
class QuotaClosedException(APIException):
""" if quota is closed, operations can not be done """