feat: batchst添加字段以追踪material_start
This commit is contained in:
parent
b070b312a8
commit
d4df340c1c
|
@ -601,7 +601,7 @@ class BatchSt(BaseModel):
|
||||||
raise ParseError(f"{batch} 该批号已存在不可用")
|
raise ParseError(f"{batch} 该批号已存在不可用")
|
||||||
if mio is None and handover is None and mlog is None:
|
if mio is None and handover is None and mlog is None:
|
||||||
raise ParseError("mio or handover or mlog must be provided")
|
raise ParseError("mio or handover or mlog must be provided")
|
||||||
BatchSt.objects.create(batch=batch, mio=mio, handover=handover, mlog=mlog)
|
BatchSt.objects.create(batch=batch, mio=mio, handover=handover, mlog=mlog, material_start=material_start)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue