From 84690e7b542b7189ab39e1d02a3a76bba49c7a6b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 9 Jun 2025 15:50:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=BE=E5=BC=80=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E7=9A=84=E7=89=A9=E6=96=99=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]