update hatching

This commit is contained in:
2026-02-07 16:22:30 +03:30
parent fca5ac8c35
commit b189e728e6

View File

@@ -807,6 +807,7 @@ class HatchingsViewSet(viewsets.ModelViewSet):
'PartIdCode', 'UnitTypeName'
]
good_sum = request.data.get('GoodSum', {})
print(good_sum.get('loadingSum'))
if int(good_sum.get('loadingSum',0)) > 0:
for key in same_keys:
if key in request.data and request.data[key] is not None: