create rancher incentive plan structure - add pos device main sheba

This commit is contained in:
2025-09-24 11:00:48 +03:30
parent 73111950b4
commit d0db6c9693
7 changed files with 80 additions and 17 deletions

View File

@@ -53,3 +53,13 @@ class FreePOSProductUniqueCheck(APIException):
status_code = status.HTTP_403_FORBIDDEN
default_detail = "محصول مورد نظر برای این دستگاه از قبل ثبت شده است" # noqa
default_code = 'error'
class RancherIncentivePlanExists(APIException):
"""
raise exception if rancher with same info
"""
status_code = status.HTTP_403_FORBIDDEN
default_detail = "این دامدار برای این طرح با این نوع گونه دام قبلا اضافه شده است" # noqa
default_code = 'error'