fix: handover拆批请选择车间库存
This commit is contained in:
parent
882b0f2cbd
commit
22b6b1305f
|
@ -729,6 +729,8 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
|
|||
elif mtype == Handover.H_DIV:
|
||||
batch = handover_or_b.batch
|
||||
target, _ = BatchSt.g_create(batch=batch, handover=handover, material_start=material)
|
||||
if handover.wm is None:
|
||||
raise ParseError('拆批请选择车间库存')
|
||||
source, _ = BatchSt.g_create(batch=handover.wm.batch)
|
||||
BatchLog.g_create(source=source, target=target, handover=handover, relation_type="split")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue