半成品领料bug

This commit is contained in:
caoqianming 2021-11-18 09:09:34 +08:00
parent c0d8772a47
commit d129bf878a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class PickSerializer(serializers.Serializer):
raise exceptions.APIException('超过计划需求数') raise exceptions.APIException('超过计划需求数')
if isLowLevel: if isLowLevel:
# 更新半成品表 # 更新半成品表
wproducts = WProduct.objects.filter(pk__in=[x.wproduct for x in i['iproducts']]) wproducts = WProduct.objects.filter(pk__in=[x.wproduct for x in iproducts])
first_step = Step.objects.get(pk=sp.steps[0].id) first_step = Step.objects.get(pk=sp.steps[0].id)
wproducts.update(step=first_step, is_executed=False, wproducts.update(step=first_step, is_executed=False,
act_state=WProduct.WPR_ACT_STATE_DOING, is_hidden=False, warehouse=None, act_state=WProduct.WPR_ACT_STATE_DOING, is_hidden=False, warehouse=None,