feat: 放开出入库的物料匹配
This commit is contained in:
parent
2e3e8f997c
commit
84690e7b54
|
@ -679,8 +679,8 @@ class BatchSt(BaseModel):
|
|||
elif node.material_start is None:
|
||||
node.material_start = material_start
|
||||
node.save(update_fields = ["material_start"])
|
||||
elif node.material_start is not None and node.material_start != material_start:
|
||||
raise ParseError(f"{batch}-该批次号因物料不同不可引用-{str(node.material_start)} vs {str(material_start)}")
|
||||
# elif node.material_start is not None and node.material_start != material_start:
|
||||
# raise ParseError(f"{batch}-该批次号因物料不同不可引用-{str(node.material_start)} vs {str(material_start)}")
|
||||
return node, False
|
||||
else:
|
||||
latest_version = BatchSt.objects.filter(batch=batch).aggregate(Max("version"))["version__max"]
|
||||
|
|
Loading…
Reference in New Issue