fix: handover submit合并批次bug

This commit is contained in:
caoqianming 2025-01-14 08:52:16 +08:00
parent e76b3dcd69
commit f4f17fd2b8
1 changed files with 2 additions and 0 deletions

View File

@ -686,6 +686,7 @@ def handover_submit(handover: Handover, user: User, now: Union[datetime.datetime
mgroup=recive_mgroup,
belong_dept=recive_dept,
notok_sign=wm_from.notok_sign,
defect=wm_from.defect,
material_origin=material,
state=WMaterial.WM_REPAIR,
defaults={
@ -718,6 +719,7 @@ def handover_submit(handover: Handover, user: User, now: Union[datetime.datetime
mgroup=recive_mgroup,
belong_dept=recive_dept,
notok_sign=wm_from.notok_sign,
defect=wm_from.defect,
state=WMaterial.WM_SCRAP,
defaults={
"batch_ofrom": wm_from.batch_ofrom,