fix: handover submit合并批次bug
This commit is contained in:
parent
e76b3dcd69
commit
f4f17fd2b8
|
|
@ -686,6 +686,7 @@ def handover_submit(handover: Handover, user: User, now: Union[datetime.datetime
|
||||||
mgroup=recive_mgroup,
|
mgroup=recive_mgroup,
|
||||||
belong_dept=recive_dept,
|
belong_dept=recive_dept,
|
||||||
notok_sign=wm_from.notok_sign,
|
notok_sign=wm_from.notok_sign,
|
||||||
|
defect=wm_from.defect,
|
||||||
material_origin=material,
|
material_origin=material,
|
||||||
state=WMaterial.WM_REPAIR,
|
state=WMaterial.WM_REPAIR,
|
||||||
defaults={
|
defaults={
|
||||||
|
|
@ -718,6 +719,7 @@ def handover_submit(handover: Handover, user: User, now: Union[datetime.datetime
|
||||||
mgroup=recive_mgroup,
|
mgroup=recive_mgroup,
|
||||||
belong_dept=recive_dept,
|
belong_dept=recive_dept,
|
||||||
notok_sign=wm_from.notok_sign,
|
notok_sign=wm_from.notok_sign,
|
||||||
|
defect=wm_from.defect,
|
||||||
state=WMaterial.WM_SCRAP,
|
state=WMaterial.WM_SCRAP,
|
||||||
defaults={
|
defaults={
|
||||||
"batch_ofrom": wm_from.batch_ofrom,
|
"batch_ofrom": wm_from.batch_ofrom,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue