fix: 返修交接后物料状态都变为返修品
This commit is contained in:
parent
88bf75baaf
commit
cd294bc53c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue