bug修改
This commit is contained in:
parent
756f2efc56
commit
c9219ea495
|
@ -544,7 +544,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd
|
|||
# 更新子计划生产进度
|
||||
# 如果产品有返工标记不做计算
|
||||
if wp.ng_sign not in [WProduct.NG_BACK_FIX, WProduct.NG_BACK_WORK]:
|
||||
ins = SubProductionProgress.objects.filter(subproduction_plan=wsp,
|
||||
ins = SubProductionProgress.objects.get(subproduction_plan=wsp,
|
||||
is_main=True, type=SubprodctionMaterial.SUB_MA_TYPE_OUT)
|
||||
ins.count_real = ins.count_real + 1
|
||||
ins.save()
|
||||
|
|
Loading…
Reference in New Issue