update HatchingsViewSet

This commit is contained in:
2026-02-03 16:39:09 +03:30
parent 2f66b82cdc
commit 5998f75b7f
7 changed files with 157 additions and 157 deletions

Binary file not shown.

View File

@@ -796,7 +796,7 @@ class HatchingsViewSet(viewsets.ModelViewSet):
'ایند<EFBFBD><EFBFBD>ن ریور': 'ایندین ریور',
'ک<EFBFBD><EFBFBD>ب': 'کاب'
}
if int(request.data['GoodSum']) > 0:
# if int(request.data['GoodSum']) > 0:
poultry_data = {}
same_keys = [
@@ -968,8 +968,8 @@ class HatchingsViewSet(viewsets.ModelViewSet):
hatching.samasat_discharge_percentage = int(
((hatching.Evacuation + bars_quantity) / hatching.ChickCountSum) * 100)
hatching.save()
else:
print('تعداد حمل صفر است')
# else:
# print('تعداد حمل صفر است')
return Response({"result": "با موفقیت ثبت شد"}, status=status.HTTP_201_CREATED)
def list(self, request, *args, **kwargs):