When a repack stock entry is happening it automatically skips a number and creates a new one.
It might be creating document twice and deleting one
I have checked this condition also It isn’t creating any new one.