update KillHouseFreeBarInformationViewSet
This commit is contained in:
@@ -11828,6 +11828,7 @@ class KillHouseFreeBarInformationViewSet(viewsets.ModelViewSet):
|
||||
free_bar.acceptor_rejector = user.fullname
|
||||
if 'killer_key' in request.data.keys() and request.data['killer_key'] != None and request.data[
|
||||
'killer_key'] != '':
|
||||
if 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 :
|
||||
return Response(
|
||||
|
||||
Reference in New Issue
Block a user