bug修改

This commit is contained in:
caoqianming 2021-12-27 15:52:05 +08:00
parent 756f2efc56
commit c9219ea495
1 changed files with 1 additions and 1 deletions

View File

@ -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()