quota, distribution, inventory entry, quota sale transaction, product informations, signals ,....
This commit is contained in:
14
apps/warehouse/exceptions.py
Normal file
14
apps/warehouse/exceptions.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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'
|
||||
Reference in New Issue
Block a user