quota, distribution, inventory entry, quota sale transaction, product informations, signals ,....

This commit is contained in:
2025-07-02 15:42:51 +03:30
parent 2f23c5104d
commit 279afba977
45 changed files with 1408 additions and 88 deletions

View 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'