fix: 该交接单不支持撤销的bug
This commit is contained in:
parent
db2e8934ba
commit
fec244765a
|
@ -921,6 +921,8 @@ def handover_revert(handover:Handover):
|
|||
handover_type = handover.type
|
||||
handover_mtype = handover.mtype
|
||||
if handover_type in [Handover.H_NORMAL, Handover.H_REPAIR] and handover_mtype == Handover.H_NORMAL:
|
||||
pass
|
||||
else:
|
||||
raise ParseError('该交接单不支持撤销!')
|
||||
handoverb_qs = Handoverb.objects.filter(handover=handover)
|
||||
material = handover.material
|
||||
|
|
Loading…
Reference in New Issue