15 lines
651 B
Python
15 lines
651 B
Python
from rest_framework.exceptions import APIException
|
|
from rest_framework import status
|
|
|
|
|
|
class InventoryEntryWeightException(APIException):
|
|
status_code = status.HTTP_400_BAD_REQUEST
|
|
default_detail = "مقدار وارد شده برای ورودی به انبار از مقدار کل سهمیه توزیع داده شده بیشتر است" # noqa
|
|
default_code = 'error'
|
|
|
|
|
|
class TotalInventorySaleException(APIException):
|
|
status_code = status.HTTP_400_BAD_REQUEST
|
|
default_detail = "مقدار وارد شده برای فروش از انبار از موجودی انبار بیشتر میباشد" # noqa
|
|
default_code = 'error'
|