fix: 返修交接后物料状态都变为返修品

This commit is contained in:
caoqianming 2025-04-14 23:03:34 +08:00
parent 88bf75baaf
commit cd294bc53c
1 changed files with 4 additions and 4 deletions

View File

@ -772,10 +772,10 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
# 返修交接
recive_mgroup = handover.recive_mgroup
if recive_mgroup:
if recive_mgroup.process == Process.PRO_TEST:
wm_state = WMaterial.WM_REPAIRED
else:
wm_state = WMaterial.WM_REPAIR
# if recive_mgroup.process.type == Process.PRO_TEST:
# wm_state = WMaterial.WM_REPAIRED
# else:
wm_state = WMaterial.WM_REPAIR
wm_to, _ = WMaterial.objects.get_or_create(
batch=batch,
material=material,