Hi etoro2065
Thanks for your post.
Please, could you tell me if you are creating a Purchase Order?
If so, in the POs when changing to another status, the stock will be reduced/increased automatically.
I'll leave you here the tutorial that might be useful.
Best regards,
Iryna