feat: 放开出入库的物料匹配

This commit is contained in:
caoqianming 2025-06-09 15:50:08 +08:00
parent 2e3e8f997c
commit 84690e7b54
1 changed files with 2 additions and 2 deletions

View File

@ -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"]