free sale of inventory entry system deployment - add dhi state to rancher
This commit is contained in:
@@ -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 """
|
||||
|
||||
|
||||
Reference in New Issue
Block a user