diff --git a/apps/wpm/models.py b/apps/wpm/models.py index 2d7b5a87..fdbe51d9 100644 --- a/apps/wpm/models.py +++ b/apps/wpm/models.py @@ -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"]