fix: 如果是主要输入物料且是主批次,才需生成输出3
This commit is contained in:
parent
abd6ca53f1
commit
98f4af2f8c
|
@ -493,7 +493,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
|
|||
if material_out is None:
|
||||
raise ParseError('产物不可为空')
|
||||
# 如果是主要输入物料且是主批次,才需生成输出
|
||||
if route.material_in != material_in or mlogbin.parent is None:
|
||||
if route.material_in != material_in or mlogbin.parent is not None:
|
||||
return
|
||||
m_dict = {
|
||||
"mtask": mlogbin.mtask,
|
||||
|
|
Loading…
Reference in New Issue