fix: 追踪到个的才需要赋予质检表
This commit is contained in:
parent
b8fd5fd13b
commit
695590589e
|
@ -546,7 +546,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
|
|||
# 找寻质检表
|
||||
if material_out.tracking == Material.MA_TRACKING_SINGLE:
|
||||
qctmat = QctMat.objects.filter(material=material_out, qct__is_deleted=False).order_by("-create_time").first()
|
||||
mlogbout.qct = qctmat.qct
|
||||
mlogbout.qct = qctmat.qct if qctmat else None
|
||||
mlogbout.count_real = d_count_real
|
||||
mlogbout.count_ok = d_count_ok
|
||||
mlogbout.save()
|
||||
|
|
Loading…
Reference in New Issue