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