fix: 该交接单不支持撤销的bug

This commit is contained in:
caoqianming 2025-06-20 11:11:31 +08:00
parent db2e8934ba
commit fec244765a
1 changed files with 2 additions and 0 deletions

View File

@ -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