feat: check_batch_exist 暂时先去除
This commit is contained in:
parent
da1f587036
commit
c86e15cef9
|
|
@ -733,8 +733,9 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
|
||||||
batches = [new_batch]
|
batches = [new_batch]
|
||||||
else:
|
else:
|
||||||
raise ParseError("合并批次时请提供新批次号")
|
raise ParseError("合并批次时请提供新批次号")
|
||||||
if handover.new_wm is None:
|
# 暂时去除以下校验
|
||||||
check_batch_exist = True
|
# if handover.new_wm is None:
|
||||||
|
# check_batch_exist = True
|
||||||
target_b, _ = BatchSt.g_create(batch=new_batch, handover=handover, material_start=material, check_batch_exist=check_batch_exist)
|
target_b, _ = BatchSt.g_create(batch=new_batch, handover=handover, material_start=material, check_batch_exist=check_batch_exist)
|
||||||
exclude_batchst_ids.append(target_b.id)
|
exclude_batchst_ids.append(target_b.id)
|
||||||
elif mtype == Handover.H_DIV:
|
elif mtype == Handover.H_DIV:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue