This commit is contained in:
2026-02-10 16:33:59 +03:30

View File

@@ -11828,6 +11828,7 @@ class KillHouseFreeBarInformationViewSet(viewsets.ModelViewSet):
free_bar.acceptor_rejector = user.fullname free_bar.acceptor_rejector = user.fullname
if 'killer_key' in request.data.keys() and request.data['killer_key'] != None and request.data[ if 'killer_key' in request.data.keys() and request.data['killer_key'] != None and request.data[
'killer_key'] != '': 'killer_key'] != '':
if free_bar.input_warehouse:
pre_kill_house = free_bar.input_warehouse pre_kill_house = free_bar.input_warehouse
if (pre_kill_house.total_input_warehouse_free_weight - free_bar.weight_of_carcasses) - pre_kill_house.total_selling_warehouse_free_weight < 0 : if (pre_kill_house.total_input_warehouse_free_weight - free_bar.weight_of_carcasses) - pre_kill_house.total_selling_warehouse_free_weight < 0 :
return Response( return Response(