fix: batchst g_create bug
This commit is contained in:
parent
6f28056ed4
commit
52b96dc740
|
@ -722,7 +722,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
|
|||
if create_new_batch is False:
|
||||
target, _ = BatchSt.g_create(batch=batch, handover=handover, material_start=material)
|
||||
create_new_batch = True
|
||||
source, _ = BatchLog.g_create(batch=wm_from.batch)
|
||||
source, _ = BatchSt.g_create(batch=wm_from.batch)
|
||||
BatchLog.g_create(source=source, target=target, handover=handover, relation_type="merge")
|
||||
elif mtype == Handover.H_DIV:
|
||||
batch = handover_or_b.batch
|
||||
|
|
Loading…
Reference in New Issue